feat(server): store mime type of webpublic

This commit is contained in:
syuilo
2022-01-20 02:40:13 +09:00
parent 8b5a1faaa4
commit 53937e09a0
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
const { MigrationInterface, QueryRunner } = require("typeorm");
module.exports = class driveFileWebpublicType1642613870898 {
name = 'driveFileWebpublicType1642613870898'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "drive_file" ADD "webpublicType" character varying(128)`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "drive_file" DROP COLUMN "webpublicType"`);
}
}