Skip to content

Commit

Permalink
change db table type
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrodes committed Jan 6, 2025
1 parent 64fe17e commit a09900b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { MigrationInterface, QueryRunner } from "typeorm";

export class HousekeepingSuggestedReviews1736188395813 implements MigrationInterface {

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`-- sql
ALTER TABLE housekeeping_suggested_reviews
MODIFY COLUMN objectId INTEGER NOT NULL;
`)
}

public async down(): Promise<void> {}

Check warning on line 12 in db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected empty async method 'down'

Check warning on line 12 in db/migration/1736188395813-UpdateHousekeepingSuggestedReviews.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected empty async method 'down'

}


// ALTER TABLE employees

0 comments on commit a09900b

Please sign in to comment.