mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 12:18:11 +00:00
fix
This commit is contained in:
@@ -94,7 +94,7 @@ export class AddServiceTypesAndCargoTypes1748427600000 implements MigrationInter
|
|||||||
|
|
||||||
// Create indexes for service_types
|
// Create indexes for service_types
|
||||||
const table = await queryRunner.getTable("freight.service_types");
|
const table = await queryRunner.getTable("freight.service_types");
|
||||||
if (table && !(await queryRunner.hasIndex("freight.service_types", "IDX_SERVICE_TYPES_IS_ACTIVE"))) {
|
if (table && !table.indices.some((idx) => idx.name === "IDX_SERVICE_TYPES_IS_ACTIVE")) {
|
||||||
await queryRunner.createIndex(
|
await queryRunner.createIndex(
|
||||||
"freight.service_types",
|
"freight.service_types",
|
||||||
new TableIndex({
|
new TableIndex({
|
||||||
@@ -103,7 +103,7 @@ export class AddServiceTypesAndCargoTypes1748427600000 implements MigrationInter
|
|||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (table && !(await queryRunner.hasIndex("freight.service_types", "IDX_SERVICE_TYPES_DISPLAY_ORDER"))) {
|
if (table && !table.indices.some((idx) => idx.name === "IDX_SERVICE_TYPES_DISPLAY_ORDER")) {
|
||||||
await queryRunner.createIndex(
|
await queryRunner.createIndex(
|
||||||
"freight.service_types",
|
"freight.service_types",
|
||||||
new TableIndex({
|
new TableIndex({
|
||||||
|
|||||||
Reference in New Issue
Block a user