2.2.0
This commit is contained in:
parent
28769e798e
commit
f5ee1bd943
17 changed files with 159 additions and 21 deletions
14
migration/1643366857976-addTokenVersion.ts
Normal file
14
migration/1643366857976-addTokenVersion.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
import {MigrationInterface, QueryRunner} from 'typeorm';
|
||||
|
||||
export class addTokenVersion1643366857976 implements MigrationInterface {
|
||||
name = 'addTokenVersion1643366857976'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query('ALTER TABLE "user" ADD "tokenVersion" integer NOT NULL DEFAULT 1');
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query('ALTER TABLE "user" DROP COLUMN "tokenVersion"');
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue