diff --git a/packages/data-store/src/helpers.ts b/packages/data-store/src/helpers.ts index 7075d206..51def62a 100644 --- a/packages/data-store/src/helpers.ts +++ b/packages/data-store/src/helpers.ts @@ -25,7 +25,7 @@ export function getDataSource(options: DataStoreConfigs) { dropSchema: options.dropSchema, driver: options.driver, sqlJsConfig: options.sqlJsConfig, - migrationsRun: process.env.NODE_ENV === 'test', + migrationsRun: process.env.NODE_ENV !== 'test', migrations: typeOrmMigrations, ...(options.typeORMConfigs || {}), });