Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于表结构的同步,cool admin和midway存在差异,导致错误,辛苦请官方修改一下 #189

Open
sdttt1 opened this issue Oct 22, 2024 · 0 comments

Comments

@sdttt1
Copy link

sdttt1 commented Oct 22, 2024

关于表结构的同步
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功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant