Skip to content

Commit

Permalink
fix: typeorm cli need to always know migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyi.levi committed Feb 17, 2023
1 parent 4baaea2 commit fd1a4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/platform-server/src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const dataSource = new DataSource({
type: 'mysql',
namingStrategy: new SnakeNamingStrategy(),
entities: mysqlEntities,
migrations: perfsee.prod ? [] : [join(__dirname, '../../../db/migrations/*.ts')],
migrations: [join(__dirname, '../../../db/migrations/*.ts')],
migrationsTableName: 'typeorm_migration_table',
migrationsRun: false,
synchronize: false,
Expand Down

0 comments on commit fd1a4b8

Please sign in to comment.