@nocobase/database 2.1.0-beta.26 → 2.1.0-beta.29

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.
Files changed (2) hide show
  1. package/lib/database.js +3 -0
  2. 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-beta.26",
3
+ "version": "2.1.0-beta.29",
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-beta.26",
10
- "@nocobase/utils": "2.1.0-beta.26",
9
+ "@nocobase/logger": "2.1.0-beta.29",
10
+ "@nocobase/utils": "2.1.0-beta.29",
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": "b17e1a72057813fa27d8435bf0f2af67ea4b059f"
41
+ "gitHead": "86c41be29dcbcac6fd6aa46b4a137ef07a27c1d0"
42
42
  }