From 3c2b789fbd26bf8a3edbcb23bd7372db09ddbc5a Mon Sep 17 00:00:00 2001 From: Maycon Mello Date: Thu, 10 Aug 2023 06:31:51 -0300 Subject: [PATCH] fixing data migration issue --- packages/data-store/src/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || {}), });