mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 16:35:42 +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 => ({
|
export default registerAs(
|
||||||
...buildDataSourceOptions(),
|
"database",
|
||||||
autoLoadEntities: true,
|
(): TypeOrmModuleOptions => ({
|
||||||
migrationsRun: false,
|
...buildDataSourceOptions(),
|
||||||
}));
|
autoLoadEntities: true,
|
||||||
|
migrationsRun: false,
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
buildIamMigrationDataSourceOptions,
|
buildIamMigrationDataSourceOptions,
|
||||||
buildFreightMigrationDataSourceOptions,
|
buildFreightMigrationDataSourceOptions,
|
||||||
FREIGHT_MIGRATIONS,
|
FREIGHT_MIGRATIONS,
|
||||||
IAM_MIGRATIONS,
|
// IAM_MIGRATIONS,
|
||||||
LEGACY_MIGRATIONS,
|
LEGACY_MIGRATIONS,
|
||||||
} from "../config/database.config";
|
} from "../config/database.config";
|
||||||
|
|
||||||
@@ -109,7 +109,7 @@ async function adoptLegacyHistory(
|
|||||||
|
|
||||||
if (!legacyExists[0].present) return;
|
if (!legacyExists[0].present) return;
|
||||||
|
|
||||||
await createHistoryTable(dataSource, IAM_MIGRATIONS);
|
// await createHistoryTable(dataSource, IAM_MIGRATIONS);
|
||||||
await createHistoryTable(dataSource, FREIGHT_MIGRATIONS);
|
await createHistoryTable(dataSource, FREIGHT_MIGRATIONS);
|
||||||
|
|
||||||
const adopt = async (
|
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);
|
await adopt(FREIGHT_MIGRATIONS, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user