Skip to content

Commit d18ee26

Browse files
authored
Fix compatibility issues with db-migration (#18831)
1 parent 3c4818f commit d18ee26

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

components/gitpod-db/src/typeorm/migration/1695733993909-CodeSyncDropDeleted.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ import { columnExists } from "./helper/helper";
1010
export class CodeSyncDropDeleted1695733993909 implements MigrationInterface {
1111
public async up(queryRunner: QueryRunner): Promise<void> {
1212
if (await columnExists(queryRunner, "d_b_code_sync_resource", "deleted")) {
13-
await queryRunner.query("ALTER TABLE `d_b_code_sync_resource` DROP COLUMN `deleted`, ALGORITHM=INSTANT");
13+
await queryRunner.query("ALTER TABLE `d_b_code_sync_resource` DROP COLUMN `deleted`");
1414
}
1515
if (await columnExists(queryRunner, "d_b_code_sync_collection", "deleted")) {
16-
await queryRunner.query("ALTER TABLE `d_b_code_sync_collection` DROP COLUMN `deleted`, ALGORITHM=INSTANT");
16+
await queryRunner.query("ALTER TABLE `d_b_code_sync_collection` DROP COLUMN `deleted`");
1717
}
1818
}
1919

2020
public async down(queryRunner: QueryRunner): Promise<void> {
2121
if (!(await columnExists(queryRunner, "d_b_code_sync_collection", "deleted"))) {
2222
await queryRunner.query(
23-
"ALTER TABLE `d_b_code_sync_collection` ADD COLUMN `deleted` tinyint(4) NOT NULL DEFAULT '0', ALGORITHM=INSTANT",
23+
"ALTER TABLE `d_b_code_sync_collection` ADD COLUMN `deleted` tinyint(4) NOT NULL DEFAULT '0'",
2424
);
2525
}
2626
if (!(await columnExists(queryRunner, "d_b_code_sync_resource", "deleted"))) {
2727
await queryRunner.query(
28-
"ALTER TABLE `d_b_code_sync_resource` ADD COLUMN `deleted` tinyint(4) NOT NULL DEFAULT '0', ALGORITHM=INSTANT",
28+
"ALTER TABLE `d_b_code_sync_resource` ADD COLUMN `deleted` tinyint(4) NOT NULL DEFAULT '0'",
2929
);
3030
}
3131
}

components/gitpod-db/src/typeorm/migration/1695735203768-CostCenterDropDeleted.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import { columnExists } from "./helper/helper";
1010
export class CostCenterDropDeleted1695735203768 implements MigrationInterface {
1111
public async up(queryRunner: QueryRunner): Promise<void> {
1212
if (await columnExists(queryRunner, "d_b_cost_center", "deleted")) {
13-
await queryRunner.query("ALTER TABLE `d_b_cost_center` DROP COLUMN `deleted`, ALGORITHM=INSTANT");
13+
await queryRunner.query("ALTER TABLE `d_b_cost_center` DROP COLUMN `deleted`");
1414
}
1515
}
1616

1717
public async down(queryRunner: QueryRunner): Promise<void> {
1818
if (!(await columnExists(queryRunner, "d_b_cost_center", "deleted"))) {
1919
await queryRunner.query(
20-
"ALTER TABLE `d_b_cost_center` ADD COLUMN `deleted` tinyint(4) NOT NULL DEFAULT '0', ALGORITHM=INSTANT",
20+
"ALTER TABLE `d_b_cost_center` ADD COLUMN `deleted` tinyint(4) NOT NULL DEFAULT '0'",
2121
);
2222
}
2323
}

0 commit comments

Comments
 (0)