0
0
Fork 0
This commit is contained in:
Xeltica 2021-01-06 23:50:42 +09:00
parent ccd496722a
commit d16f22feb5
7 changed files with 111 additions and 51 deletions

View file

@ -0,0 +1,14 @@
import {MigrationInterface, QueryRunner} from 'typeorm';
export class template1609941393782 implements MigrationInterface {
name = 'template1609941393782'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE "user" ADD "template" character varying(280)');
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query('ALTER TABLE "user" DROP COLUMN "template"');
}
}