fix: update migrations folder path in database service
This commit is contained in:
parent
9515c32016
commit
0249d62951
@ -40,7 +40,7 @@ export class DatabaseService implements OnModuleInit, OnModuleDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Run migrations in all environments
|
// Run migrations in all environments
|
||||||
const result = await runMigrations({ migrationsFolder: './src/database/migrations' });
|
const result = await runMigrations({ migrationsFolder: './src/database/migrations/sql' });
|
||||||
|
|
||||||
// In production, we want to fail if migrations fail
|
// In production, we want to fail if migrations fail
|
||||||
if (!result.success && this.configService.get('NODE_ENV') === 'production') {
|
if (!result.success && this.configService.get('NODE_ENV') === 'production') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user