mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Merge pull request #1168 from Tria-plc/freight/nati-2
fix: rm iam migration from migrate
This commit is contained in:
@@ -215,8 +215,11 @@ export function buildFreightMigrationDataSourceOptions(): DataSourceOptions {
|
||||
};
|
||||
}
|
||||
|
||||
export default registerAs("database", (): TypeOrmModuleOptions => ({
|
||||
...buildDataSourceOptions(),
|
||||
autoLoadEntities: true,
|
||||
migrationsRun: false,
|
||||
}));
|
||||
export default registerAs(
|
||||
"database",
|
||||
(): TypeOrmModuleOptions => ({
|
||||
...buildDataSourceOptions(),
|
||||
autoLoadEntities: true,
|
||||
migrationsRun: false,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
buildIamMigrationDataSourceOptions,
|
||||
buildFreightMigrationDataSourceOptions,
|
||||
FREIGHT_MIGRATIONS,
|
||||
IAM_MIGRATIONS,
|
||||
// IAM_MIGRATIONS,
|
||||
LEGACY_MIGRATIONS,
|
||||
} from "../config/database.config";
|
||||
|
||||
@@ -109,7 +109,7 @@ async function adoptLegacyHistory(
|
||||
|
||||
if (!legacyExists[0].present) return;
|
||||
|
||||
await createHistoryTable(dataSource, IAM_MIGRATIONS);
|
||||
// await createHistoryTable(dataSource, IAM_MIGRATIONS);
|
||||
await createHistoryTable(dataSource, FREIGHT_MIGRATIONS);
|
||||
|
||||
const adopt = async (
|
||||
@@ -134,7 +134,7 @@ async function adoptLegacyHistory(
|
||||
);
|
||||
};
|
||||
|
||||
await adopt(IAM_MIGRATIONS, true);
|
||||
// await adopt(IAM_MIGRATIONS, true);
|
||||
await adopt(FREIGHT_MIGRATIONS, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user