0
0
Fork 0

feat: appendHashtag column

This commit is contained in:
아르페 2024-01-31 03:28:59 +09:00
parent 8507761272
commit 650af9c5ca
6 changed files with 36 additions and 2 deletions

View file

@ -0,0 +1,13 @@
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"');
}
}