0
0
Fork 0

テンプレート文字数を1024に拡張

This commit is contained in:
Xeltica 2022-09-15 16:36:05 +09:00
parent e3f7399b54
commit 34d9048641
4 changed files with 97 additions and 62 deletions

View file

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