ミス廃: ランキングへの参加をオプトインに
This commit is contained in:
parent
29a68897e1
commit
aaf48cf329
8 changed files with 40 additions and 4 deletions
13
migration/1651804009671-useRanking.ts
Normal file
13
migration/1651804009671-useRanking.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import {MigrationInterface, QueryRunner} from "typeorm";
|
||||
|
||||
export class useRanking1651804009671 implements MigrationInterface {
|
||||
name = 'useRanking1651804009671'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "user" ADD "useRanking" boolean NOT NULL DEFAULT false`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "useRanking"`);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue