diff --git a/components/gitpod-db/src/typeorm/entity/db-workspace.ts b/components/gitpod-db/src/typeorm/entity/db-workspace.ts index fe1ea8d6fb..faa0320856 100644 --- a/components/gitpod-db/src/typeorm/entity/db-workspace.ts +++ b/components/gitpod-db/src/typeorm/entity/db-workspace.ts @@ -27,7 +27,6 @@ export class DBWorkspace implements Workspace { ownerId: string; @Column("text") - @Index('ind_contextURL') contextURL: string; @Column({ diff --git a/components/gitpod-db/src/typeorm/migration/1644327547997-IndexWorkspaceContextUrl.ts b/components/gitpod-db/src/typeorm/migration/1644327547997-IndexWorkspaceContextUrl.ts deleted file mode 100644 index a5136705e3..0000000000 --- a/components/gitpod-db/src/typeorm/migration/1644327547997-IndexWorkspaceContextUrl.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * Copyright (c) 2022 Gitpod GmbH. All rights reserved. - * Licensed under the GNU Affero General Public License (AGPL). - * See License-AGPL.txt in the project root for license information. - */ - -import {MigrationInterface, QueryRunner} from "typeorm"; -import { indexExists } from "./helper/helper"; - -export class IndexWorkspaceContextUrl1644327547997 implements MigrationInterface { - - public async up(queryRunner: QueryRunner): Promise { - const TABLE_NAME = "d_b_workspace"; - const INDEX_NAME = "ind_contextURL"; - - if(!(await indexExists(queryRunner, TABLE_NAME, INDEX_NAME))) { - await queryRunner.query("ALTER TABLE d_b_workspace MODIFY COLUMN `contextURL` varchar(255) NOT NULL"); - await queryRunner.query(`CREATE INDEX ${INDEX_NAME} ON ${TABLE_NAME} (contextURL)`); - } - } - - public async down(queryRunner: QueryRunner): Promise { - } - -}