@nocobase/database 2.1.0-alpha.30 → 2.1.0-alpha.32
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/database.js +3 -0
- package/package.json +4 -4
package/lib/database.js
CHANGED
|
@@ -213,6 +213,9 @@ const _Database = class _Database extends import_events.EventEmitter {
|
|
|
213
213
|
this.migrations = new import_migration.Migrations(context);
|
|
214
214
|
this.sequelize.beforeDefine((model, opts2) => {
|
|
215
215
|
if (this.options.tablePrefix) {
|
|
216
|
+
if (opts2.tableName && opts2["from"] === "dbsync") {
|
|
217
|
+
return;
|
|
218
|
+
}
|
|
216
219
|
if (opts2.tableName && opts2.tableName.startsWith(this.options.tablePrefix)) {
|
|
217
220
|
return;
|
|
218
221
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/logger": "2.1.0-alpha.
|
|
10
|
-
"@nocobase/utils": "2.1.0-alpha.
|
|
9
|
+
"@nocobase/logger": "2.1.0-alpha.32",
|
|
10
|
+
"@nocobase/utils": "2.1.0-alpha.32",
|
|
11
11
|
"async-mutex": "^0.3.2",
|
|
12
12
|
"chalk": "^4.1.1",
|
|
13
13
|
"cron-parser": "4.4.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
39
39
|
"directory": "packages/database"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "1ba7d717e156651db17c615f9b9c48edd669d19b"
|
|
42
42
|
}
|