From 0bd0af98129776f884ceae745ee0d7afbf7f6504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Rod=C3=A9s-Guirao?= Date: Tue, 7 Jan 2025 01:23:31 +0100 Subject: [PATCH] edit migration further (#4389) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * migration * 🤖 style: prettify code * add annotation --- ...188395813-UpdateHousekeepingSuggestedReviews.ts | 3 +-- ...06740420-UpdateHousekeepingSuggestedReviews2.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 db/migration/1736206740420-UpdateHousekeepingSuggestedReviews2.ts diff --git a/db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts b/db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts index 6ce84a20a4..09bd3832f5 100644 --- a/db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts +++ b/db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts @@ -10,7 +10,6 @@ export class HousekeepingSuggestedReviews1736188395813 `) } + // eslint-disable-next-line @typescript-eslint/no-empty-function public async down(): Promise {} } - -// ALTER TABLE employees diff --git a/db/migration/1736206740420-UpdateHousekeepingSuggestedReviews2.ts b/db/migration/1736206740420-UpdateHousekeepingSuggestedReviews2.ts new file mode 100644 index 0000000000..19ed46a466 --- /dev/null +++ b/db/migration/1736206740420-UpdateHousekeepingSuggestedReviews2.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner } from "typeorm" + +export class UpdateHousekeepingSuggestedReviews21736206740420 + implements MigrationInterface +{ + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`-- sql + ALTER TABLE housekeeping_suggested_reviews DROP INDEX objectType; + `) + } + + // eslint-disable-next-line @typescript-eslint/no-empty-function + public async down(): Promise {} +}