Skip to content

Commit

Permalink
edit migration further (#4389)
Browse files Browse the repository at this point in the history
* migration

* 🤖 style: prettify code

* add annotation
  • Loading branch information
lucasrodes authored and danyx23 committed Jan 9, 2025
1 parent 677e8e6 commit 0bd0af9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export class HousekeepingSuggestedReviews1736188395813
`)
}

// eslint-disable-next-line @typescript-eslint/no-empty-function
public async down(): Promise<void> {}
}

// ALTER TABLE employees
14 changes: 14 additions & 0 deletions db/migration/1736206740420-UpdateHousekeepingSuggestedReviews2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm"

export class UpdateHousekeepingSuggestedReviews21736206740420
implements MigrationInterface
{
public async up(queryRunner: QueryRunner): Promise<void> {
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<void> {}
}

0 comments on commit 0bd0af9

Please sign in to comment.