You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
使用cool admin 官方配置执行
npx mwtypeorm migration:generate -d ./src/config/config.local.ts src/modules/czz/migration/test
运行结果为No changes in database schema were found - cannot generate a migration. To create a new empty migration use "typeorm migration:create" command;
关于表结构的同步
typeorm cool admin 官方配置是
entities: ['**/modules/*/entity']
参考midway官方得到的配置是
entities: ['/modules/*/entity/.ts'],
migrations: ['/modules/*/migration/.ts']
使用cool admin 官方配置执行
npx mwtypeorm migration:generate -d ./src/config/config.local.ts src/modules/czz/migration/test
运行结果为No changes in database schema were found - cannot generate a migration. To create a new empty migration use "typeorm migration:create" command;
使用参考midway官方得到的配置执行
npx mwtypeorm migration:generate -d ./src/config/config.local.ts src/modules/czz/migration/test
运行结果成功生成。
使用参考midway官方得到的配置时系统无法运行,希望官方能修改一下,让我们能够使用typeorm的cli功能
The text was updated successfully, but these errors were encountered: