@midwayjs/typeorm 3.9.4 → 3.9.5

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.
@@ -20,6 +20,9 @@ let TypeORMDataSourceManager = class TypeORMDataSourceManager extends core_1.Dat
20
20
  return 'typeorm';
21
21
  }
22
22
  async createDataSource(config, dataSourceName) {
23
+ if (config['migrations']) {
24
+ delete config['migrations'];
25
+ }
23
26
  const dataSource = new typeorm_1.DataSource(config);
24
27
  await dataSource.initialize();
25
28
  return dataSource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/typeorm",
3
- "version": "3.9.4",
3
+ "version": "3.9.5",
4
4
  "main": "dist/index",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -35,5 +35,5 @@
35
35
  "type": "git",
36
36
  "url": "https://github.com/midwayjs/midway.git"
37
37
  },
38
- "gitHead": "b3daa4674afc965f147fc94b2801b4eefed87660"
38
+ "gitHead": "753614cd3ff5491224d0a78afd31821ab8d60837"
39
39
  }