summaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2021-06-04 20:40:47 +0900
committerGitHub <noreply@github.com>2021-06-04 20:40:47 +0900
commita5cdc9a1f4a38aea4688db5a5f000947b8e60299 (patch)
tree176b12f40d0b647346f414bbe9e050ed952ef005 /migration
parentUpdate misskey.js (diff)
downloadsharkey-a5cdc9a1f4a38aea4688db5a5f000947b8e60299.tar.gz
sharkey-a5cdc9a1f4a38aea4688db5a5f000947b8e60299.tar.bz2
sharkey-a5cdc9a1f4a38aea4688db5a5f000947b8e60299.zip
Add missing migrations (#7552)
Diffstat (limited to 'migration')
-rw-r--r--migration/1622679304522-user-profile-description-length.ts13
-rw-r--r--migration/1622681548499-log-message-length.ts12
2 files changed, 25 insertions, 0 deletions
diff --git a/migration/1622679304522-user-profile-description-length.ts b/migration/1622679304522-user-profile-description-length.ts
new file mode 100644
index 0000000000..015d1e24b7
--- /dev/null
+++ b/migration/1622679304522-user-profile-description-length.ts
@@ -0,0 +1,13 @@
+import {MigrationInterface, QueryRunner} from "typeorm";
+
+export class userProfileDescriptionLength1622679304522 implements MigrationInterface {
+ name = 'userProfileDescriptionLength1622679304522';
+
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "description" TYPE character varying(2048)`, undefined);
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "description" TYPE character varying(1024)`, undefined);
+ }
+}
diff --git a/migration/1622681548499-log-message-length.ts b/migration/1622681548499-log-message-length.ts
new file mode 100644
index 0000000000..ef8c33982b
--- /dev/null
+++ b/migration/1622681548499-log-message-length.ts
@@ -0,0 +1,12 @@
+import {MigrationInterface, QueryRunner} from "typeorm";
+
+export class logMessageLength1622681548499 implements MigrationInterface {
+ name = 'logMessageLength1622681548499';
+ public async up(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(2048)`, undefined);
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<void> {
+ await queryRunner.query(`ALTER TABLE "log" ALTER COLUMN "message" TYPE character varying(1024)`, undefined);
+ }
+}