Skip to content

Commit 28bc525

Browse files
geroplroboquat
authored andcommitted
[db] Fix broken table name
1 parent 6285314 commit 28bc525

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

components/gitpod-db/src/tables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export class GitpodTableDescriptionProvider implements TableDescriptionProvider
245245
timeColumn: '_lastModified',
246246
},
247247
{
248-
name: 'd_b_oss_allowlist',
248+
name: 'd_b_oss_allow_list',
249249
primaryKeys: ['identity'],
250250
deletionColumn: 'deleted',
251251
timeColumn: '_lastModified',

components/gitpod-db/src/typeorm/deleted-entry-gc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const tables: TableWithDeletion[] = [
5757
{ deletionColumn: "deleted", name: "d_b_team_membership_invite" },
5858
{ deletionColumn: "deleted", name: "d_b_project" },
5959
{ deletionColumn: "deleted", name: "d_b_prebuild_info" },
60-
{ deletionColumn: "deleted", name: "d_b_oss_allowlist" },
60+
{ deletionColumn: "deleted", name: "d_b_oss_allow_list" },
6161
];
6262

6363
interface TableWithDeletion {

components/gitpod-db/src/typeorm/migration/1638973332787-OssAllowlist.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import { tableExists } from "./helper/helper";
1010
export class OssAllowList1638973332787 implements MigrationInterface {
1111

1212
public async up(queryRunner: QueryRunner): Promise<any> {
13-
await queryRunner.query("CREATE TABLE IF NOT EXISTS `d_b_oss_allowlist` (`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");
13+
await queryRunner.query("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");
1414
}
1515

1616
public async down(queryRunner: QueryRunner): Promise<any> {
17-
if (await tableExists(queryRunner, "d_b_oss_allowlist")) {
18-
await queryRunner.query("DROP TABLE `d_b_oss_allowlist`");
17+
if (await tableExists(queryRunner, "d_b_oss_allow_list")) {
18+
await queryRunner.query("DROP TABLE `d_b_oss_allow_list`");
1919
}
2020
}
2121

0 commit comments

Comments
 (0)