@midwayjs/sequelize 3.7.0 → 3.7.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/dist/dataSourceManager.js +1 -1
- package/dist/interface.d.ts +2 -0
- package/package.json +6 -8
|
@@ -30,7 +30,7 @@ let SequelizeDataSourceManager = class SequelizeDataSourceManager extends core_1
|
|
|
30
30
|
client.addModels(listEntities);
|
|
31
31
|
await client.authenticate();
|
|
32
32
|
if (config.sync) {
|
|
33
|
-
await client.sync();
|
|
33
|
+
await client.sync(config.syncOptions);
|
|
34
34
|
}
|
|
35
35
|
this.coreLogger.info('[midway:sequelize] connecting and start');
|
|
36
36
|
return client;
|
package/dist/interface.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { DataSourceManagerConfigOption } from '@midwayjs/core';
|
|
2
2
|
import { SequelizeOptions } from 'sequelize-typescript';
|
|
3
|
+
import { SyncOptions } from 'sequelize';
|
|
3
4
|
export declare type SequelizeConfigOptions = DataSourceManagerConfigOption<SequelizeOptions & {
|
|
4
5
|
sync?: boolean;
|
|
6
|
+
syncOptions?: SyncOptions;
|
|
5
7
|
}>;
|
|
6
8
|
//# sourceMappingURL=interface.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/sequelize",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.2",
|
|
4
4
|
"main": "dist/index",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -10,13 +10,11 @@
|
|
|
10
10
|
],
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@midwayjs/core": "^3.7.0",
|
|
13
|
-
"@midwayjs/koa": "^3.7.
|
|
14
|
-
"@midwayjs/mock": "^3.7.
|
|
15
|
-
"sqlite3": "5.1.2"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
13
|
+
"@midwayjs/koa": "^3.7.1",
|
|
14
|
+
"@midwayjs/mock": "^3.7.1",
|
|
18
15
|
"sequelize": "6.25.3",
|
|
19
|
-
"sequelize-typescript": "
|
|
16
|
+
"sequelize-typescript": "2.1.5",
|
|
17
|
+
"sqlite3": "5.1.2"
|
|
20
18
|
},
|
|
21
19
|
"keywords": [
|
|
22
20
|
"midway",
|
|
@@ -40,5 +38,5 @@
|
|
|
40
38
|
"type": "git",
|
|
41
39
|
"url": "http://github.com/midwayjs/midway.git"
|
|
42
40
|
},
|
|
43
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "9b7dd3b9d1a44ea4cee484ba9e1046bc0c0b7c62"
|
|
44
42
|
}
|