fix(deploy): synchronize:true pour premier deploy MySQL — à revert après
This commit is contained in:
@@ -25,7 +25,7 @@ import { HealthController } from './common/health.controller';
|
|||||||
type: 'mysql',
|
type: 'mysql',
|
||||||
url: config.get<string>('DATABASE_URL'),
|
url: config.get<string>('DATABASE_URL'),
|
||||||
autoLoadEntities: true,
|
autoLoadEntities: true,
|
||||||
synchronize: config.get('NODE_ENV') !== 'production',
|
synchronize: true, // first deploy only — revert after tables created
|
||||||
logging: config.get('NODE_ENV') === 'development',
|
logging: config.get('NODE_ENV') === 'development',
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user