mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 08:32:54 +00:00
fix:(api:auth): added iam migrations to list of migrations
This commit is contained in:
@@ -101,7 +101,13 @@ export default registerAs(
|
||||
database: process.env.DB_NAME ?? "edr_freight",
|
||||
entities: [__dirname + "/../**/*.entity.{ts,js}", ...iamEntities],
|
||||
autoLoadEntities: true,
|
||||
migrations: [__dirname + "/../../migrations/*.{ts,js}"],
|
||||
migrations: [
|
||||
// IAM schema + tables must be created before freight entity sync
|
||||
__dirname +
|
||||
"/../../node_modules/@tria-plc/iamapi-common/dist/db/migrations/*.js",
|
||||
__dirname + "/../../migrations/*.{ts,js}",
|
||||
],
|
||||
migrationsRun: true,
|
||||
// Never enable synchronize in production. Use migrations.
|
||||
synchronize: process.env.NODE_ENV === "development",
|
||||
logging: process.env.NODE_ENV === "development",
|
||||
|
||||
Reference in New Issue
Block a user