0
0
Fork 0
misskey-tools/migration/1706638834267-appendHashtag.ts
2024-01-31 03:28:59 +09:00

13 lines
485 B
TypeScript

import {MigrationInterface, QueryRunner} from 'typeorm';
export class appendHashtag1706638834267 implements MigrationInterface {
name = 'appendHashtag1706638834267';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE "user" ADD "appendHashtag" boolean NOT NULL DEFAULT true');
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE "user" DROP COLUMN "appendHashtag"');
}
}