diff --git a/api/apps/api/src/ormconfig.ts b/api/apps/api/src/ormconfig.ts index 1d51f4644f..5a07eaf2c3 100644 --- a/api/apps/api/src/ormconfig.ts +++ b/api/apps/api/src/ormconfig.ts @@ -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, diff --git a/api/apps/geoprocessing/src/ormconfig.ts b/api/apps/geoprocessing/src/ormconfig.ts index f7b37823b1..799a5c9221 100644 --- a/api/apps/geoprocessing/src/ormconfig.ts +++ b/api/apps/geoprocessing/src/ormconfig.ts @@ -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( 'postgresGeoApi.runMigrationsOnStartup',