テンプレート文字数を1024に拡張
This commit is contained in:
parent
e3f7399b54
commit
34d9048641
4 changed files with 97 additions and 62 deletions
13
migration/1663226831484-expandTemplateLength.ts
Normal file
13
migration/1663226831484-expandTemplateLength.ts
Normal 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)');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue