@crowdin/app-project-module 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/storage/index.js +11 -11
- package/package.json +1 -1
package/out/storage/index.js
CHANGED
|
@@ -85,7 +85,7 @@ function each(query, params) {
|
|
|
85
85
|
}
|
|
86
86
|
function migrate() {
|
|
87
87
|
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
const newColumns = ['app_secret', 'domain', '
|
|
88
|
+
const newColumns = ['app_secret', 'domain', 'user_id', 'organization_id', 'base_url'];
|
|
89
89
|
const crowdinCredentialsInfo = yield each('PRAGMA table_info(crowdin_credentials);', []);
|
|
90
90
|
crowdinCredentialsInfo.map((columnInfo) => __awaiter(this, void 0, void 0, function* () {
|
|
91
91
|
const index = newColumns.indexOf(columnInfo.name);
|
|
@@ -119,16 +119,16 @@ function connect(folder) {
|
|
|
119
119
|
yield _run(`
|
|
120
120
|
create table if not exists crowdin_credentials
|
|
121
121
|
(
|
|
122
|
-
id
|
|
123
|
-
app_secret
|
|
124
|
-
domain
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
access_token
|
|
129
|
-
refresh_token
|
|
130
|
-
expire
|
|
131
|
-
type
|
|
122
|
+
id varchar not null primary key,
|
|
123
|
+
app_secret varchar null,
|
|
124
|
+
domain varchar null,
|
|
125
|
+
user_id varchar null,
|
|
126
|
+
organization_id varchar null,
|
|
127
|
+
base_url varchar null,
|
|
128
|
+
access_token varchar not null,
|
|
129
|
+
refresh_token varchar not null,
|
|
130
|
+
expire varchar not null,
|
|
131
|
+
type varchar not null
|
|
132
132
|
);
|
|
133
133
|
`, []);
|
|
134
134
|
yield _run(`
|
package/package.json
CHANGED