Skip to content

Commit 6391568

Browse files
authored
[db] Drop d_b_oss_allow_list (WEB-91) (#17138)
* [server] Remove OSS check * fix * Fix * Fix * fix * [db] Drop d_b_oss_allow_lis
1 parent d91fbff commit 6391568

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* Copyright (c) 2023 Gitpod GmbH. All rights reserved.
3+
* Licensed under the GNU Affero General Public License (AGPL).
4+
* See License.AGPL.txt in the project root for license information.
5+
*/
6+
7+
import { MigrationInterface, QueryRunner } from "typeorm";
8+
9+
export class DropOSSAllowList1680697625457 implements MigrationInterface {
10+
public async up(queryRunner: QueryRunner): Promise<any> {
11+
await queryRunner.query("DROP TABLE IF EXISTS `d_b_oss_allow_list`");
12+
}
13+
14+
public async down(queryRunner: QueryRunner): Promise<any> {
15+
await queryRunner.query(
16+
"CREATE TABLE IF NOT EXISTS `d_b_oss_allow_list` (`identity` char(128) NOT NULL, `deleted` tinyint(4) NOT NULL DEFAULT 0, `_lastModified` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), PRIMARY KEY(`identity`)) ENGINE=InnoDB",
17+
);
18+
}
19+
}

0 commit comments

Comments
 (0)