misskey-tools/migration/1651804009671-useRanking.ts
2023-02-25 17:13:07 +09:00

14 lines
474 B
TypeScript

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"');
}
}