make drive_file.comment larger

we can change the 8192 to something else, but 512 is too short ☺
This commit is contained in:
dakkar 2023-04-08 17:12:02 +01:00 committed by Gianni Ceccarelli
parent b8f2c67c10
commit 076b2d4e6c
5 changed files with 19 additions and 4 deletions

View file

@ -0,0 +1,12 @@
export class largerImageComment1680969937000 {
name = 'largerImageComment1680969937000';
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "drive_file" ALTER COLUMN "comment" TYPE character varying(8192)`, undefined);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "drive_file" ALTER COLUMN "comment" TYPE character varying(512)`, undefined);
}
}