FoundKey/packages/backend/migration/1663399074403-resize-comments-drive-file.js
2022-09-24 14:32:07 -04:00

14 lines
436 B
JavaScript

export class resizeCommentsDriveFile1663399074403 {
constructor() {
this.name = 'resizeCommentsDriveFile1663399074403';
}
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "drive_file" ALTER COLUMN "comment" TYPE character varying(2048)`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "drive_file" ALTER COLUMN "comment" TYPE character varying(512)`);
}
}