Skip to content

Commit

Permalink
fix issue with detection of migration files in prod envs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagojsag committed Mar 17, 2022
1 parent c8f87a4 commit 5006b41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/apps/api/src/ormconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const apiConnections: Record<
',',
) as LoggerOptions,
cache: false,
migrations: [__dirname + '/migrations/api/**/*.ts'],
migrations: [__dirname + '/migrations/api/**/*{.ts,.js}'],
/** Migrations will run automatically on startup, unless the
* `API_RUN_MIGRATIONS_ON_STARTUP` or `GEOPROCESSING_RUN_MIGRATIONS_ON_STARTUP`
* environment variables are set and their value matches, case-insensitively,
Expand Down
2 changes: 1 addition & 1 deletion api/apps/geoprocessing/src/ormconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const geoprocessingConnections: {
',',
) as LoggerOptions,
cache: false,
migrations: [__dirname + '/migrations/geoprocessing/**/*.ts'],
migrations: [__dirname + '/migrations/geoprocessing/**/*{.ts,.js}'],
migrationsRun:
`${AppConfig.get<string>(
'postgresGeoApi.runMigrationsOnStartup',
Expand Down

0 comments on commit 5006b41

Please sign in to comment.