summaryrefslogtreecommitdiff
path: root/packages/backend/migration
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-01-20 02:40:13 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-01-20 02:40:13 +0900
commit53937e09a0bef968dfd6d5b0f2580de876685aa0 (patch)
tree1667b98456299f7af857b60e389e6ceaa15acf1a /packages/backend/migration
parentrefactor(server): use insert instead of save (diff)
downloadmisskey-53937e09a0bef968dfd6d5b0f2580de876685aa0.tar.gz
misskey-53937e09a0bef968dfd6d5b0f2580de876685aa0.tar.bz2
misskey-53937e09a0bef968dfd6d5b0f2580de876685aa0.zip
feat(server): store mime type of webpublic
Diffstat (limited to 'packages/backend/migration')
-rw-r--r--packages/backend/migration/1642613870898-drive-file-webpublic-type.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/backend/migration/1642613870898-drive-file-webpublic-type.js b/packages/backend/migration/1642613870898-drive-file-webpublic-type.js
new file mode 100644
index 0000000000..e10c2ac2d2
--- /dev/null
+++ b/packages/backend/migration/1642613870898-drive-file-webpublic-type.js
@@ -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"`);
+ }
+}