Skip to content

Commit

Permalink
Added new migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherJMiller committed Dec 19, 2023
1 parent 2a1bdd5 commit 9b205a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions api/migrations/1702967173044-UpdateUserID.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class UpdateUserID1702967173044 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE user ALTER COLUMN id TYPE VARCHAR;`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE user ALTER COLUMN id TYPE INT;`);
}
}

0 comments on commit 9b205a7

Please sign in to comment.