feat: appendHashtag column
This commit is contained in:
parent
8507761272
commit
650af9c5ca
6 changed files with 36 additions and 2 deletions
13
migration/1706638834267-appendHashtag.ts
Normal file
13
migration/1706638834267-appendHashtag.ts
Normal 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"');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue