Skip to content

Commit f0e895b

Browse files
committed
[db] Drop d_b_oss_allow_lis
1 parent dcf6828 commit f0e895b

File tree

3 files changed

+19
-30
lines changed

3 files changed

+19
-30
lines changed

components/gitpod-db/src/tables.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,6 @@ export class GitpodTableDescriptionProvider implements TableDescriptionProvider
263263
deletionColumn: "deleted",
264264
timeColumn: "_lastModified",
265265
},
266-
{
267-
name: "d_b_oss_allow_list",
268-
primaryKeys: ["identity"],
269-
deletionColumn: "deleted",
270-
timeColumn: "_lastModified",
271-
},
272266
{
273267
name: "d_b_project_env_var",
274268
primaryKeys: ["id", "projectId"],

components/gitpod-db/src/typeorm/entity/db-oss-allowlist.ts

Lines changed: 0 additions & 24 deletions
This file was deleted.
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)