@@ -10,22 +10,22 @@ import { columnExists } from "./helper/helper";
10
10
export class CodeSyncDropDeleted1695733993909 implements MigrationInterface {
11
11
public async up ( queryRunner : QueryRunner ) : Promise < void > {
12
12
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`" ) ;
14
14
}
15
15
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`" ) ;
17
17
}
18
18
}
19
19
20
20
public async down ( queryRunner : QueryRunner ) : Promise < void > {
21
21
if ( ! ( await columnExists ( queryRunner , "d_b_code_sync_collection" , "deleted" ) ) ) {
22
22
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'" ,
24
24
) ;
25
25
}
26
26
if ( ! ( await columnExists ( queryRunner , "d_b_code_sync_resource" , "deleted" ) ) ) {
27
27
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'" ,
29
29
) ;
30
30
}
31
31
}
0 commit comments