@nocobase/server 2.1.0-beta.32 → 2.1.0-beta.34
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/lib/main-data-source.js +4 -0
- package/package.json +17 -17
package/lib/main-data-source.js
CHANGED
|
@@ -158,7 +158,11 @@ const _MainDataSource = class _MainDataSource extends import_data_source_manager
|
|
|
158
158
|
ctx.log.error(err);
|
|
159
159
|
}
|
|
160
160
|
const toLoadCollections = this.mergeWithLoadedCollections(collections, loadedCollections);
|
|
161
|
+
const currentSchema = process.env.COLLECTION_MANAGER_SCHEMA || db.options.schema || "public";
|
|
161
162
|
for (const values of toLoadCollections) {
|
|
163
|
+
if (values.schema === currentSchema) {
|
|
164
|
+
delete values.schema;
|
|
165
|
+
}
|
|
162
166
|
const existsFields = loadedCollections[values.tableName].fields;
|
|
163
167
|
const deletedFields = existsFields.filter((field) => !values.fields.find((f) => f.name === field.name));
|
|
164
168
|
await db.sequelize.transaction(async (transaction) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/server",
|
|
3
|
-
"version": "2.1.0-beta.
|
|
3
|
+
"version": "2.1.0-beta.34",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -10,21 +10,21 @@
|
|
|
10
10
|
"@koa/cors": "^5.0.0",
|
|
11
11
|
"@koa/multer": "^3.1.0",
|
|
12
12
|
"@koa/router": "^13.1.0",
|
|
13
|
-
"@nocobase/acl": "2.1.0-beta.
|
|
14
|
-
"@nocobase/actions": "2.1.0-beta.
|
|
15
|
-
"@nocobase/ai": "2.1.0-beta.
|
|
16
|
-
"@nocobase/auth": "2.1.0-beta.
|
|
17
|
-
"@nocobase/cache": "2.1.0-beta.
|
|
18
|
-
"@nocobase/data-source-manager": "2.1.0-beta.
|
|
19
|
-
"@nocobase/database": "2.1.0-beta.
|
|
20
|
-
"@nocobase/evaluators": "2.1.0-beta.
|
|
21
|
-
"@nocobase/lock-manager": "2.1.0-beta.
|
|
22
|
-
"@nocobase/logger": "2.1.0-beta.
|
|
23
|
-
"@nocobase/resourcer": "2.1.0-beta.
|
|
24
|
-
"@nocobase/sdk": "2.1.0-beta.
|
|
25
|
-
"@nocobase/snowflake-id": "2.1.0-beta.
|
|
26
|
-
"@nocobase/telemetry": "2.1.0-beta.
|
|
27
|
-
"@nocobase/utils": "2.1.0-beta.
|
|
13
|
+
"@nocobase/acl": "2.1.0-beta.34",
|
|
14
|
+
"@nocobase/actions": "2.1.0-beta.34",
|
|
15
|
+
"@nocobase/ai": "2.1.0-beta.34",
|
|
16
|
+
"@nocobase/auth": "2.1.0-beta.34",
|
|
17
|
+
"@nocobase/cache": "2.1.0-beta.34",
|
|
18
|
+
"@nocobase/data-source-manager": "2.1.0-beta.34",
|
|
19
|
+
"@nocobase/database": "2.1.0-beta.34",
|
|
20
|
+
"@nocobase/evaluators": "2.1.0-beta.34",
|
|
21
|
+
"@nocobase/lock-manager": "2.1.0-beta.34",
|
|
22
|
+
"@nocobase/logger": "2.1.0-beta.34",
|
|
23
|
+
"@nocobase/resourcer": "2.1.0-beta.34",
|
|
24
|
+
"@nocobase/sdk": "2.1.0-beta.34",
|
|
25
|
+
"@nocobase/snowflake-id": "2.1.0-beta.34",
|
|
26
|
+
"@nocobase/telemetry": "2.1.0-beta.34",
|
|
27
|
+
"@nocobase/utils": "2.1.0-beta.34",
|
|
28
28
|
"@types/decompress": "4.2.7",
|
|
29
29
|
"@types/ini": "^1.3.31",
|
|
30
30
|
"@types/koa-send": "^4.1.3",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"@types/serve-handler": "^6.1.1",
|
|
62
62
|
"@types/ws": "^8.5.5"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "ca804833299c547f8d49f8d58f73273a4bfcd03c"
|
|
65
65
|
}
|