summaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2020-04-14 00:42:59 +0900
committerGitHub <noreply@github.com>2020-04-14 00:42:59 +0900
commit9b07c5af05a8be8114af860893d68614e4ee5ca2 (patch)
tree3ca2587fe8e4d0bb845d2f42f443e21d224c4d6f /migration
parentchore(client): :art: (diff)
downloadsharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.tar.gz
sharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.tar.bz2
sharkey-9b07c5af05a8be8114af860893d68614e4ee5ca2.zip
リモートのカスタム絵文字リアクションを表示できるように (#6239)
* リモートのカスタム絵文字リアクションを表示できるように * AP * DBマイグレーション * ローカルのリアクションの. * fix * fix * fix * space
Diffstat (limited to 'migration')
-rw-r--r--migration/1586641139527-remote-reaction.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/migration/1586641139527-remote-reaction.ts b/migration/1586641139527-remote-reaction.ts
new file mode 100644
index 0000000000..5a7fb36e35
--- /dev/null
+++ b/migration/1586641139527-remote-reaction.ts
@@ -0,0 +1,12 @@
+import {MigrationInterface, QueryRunner} from "typeorm";
+
+export class remoteReaction1586641139527 implements MigrationInterface {
+ name = 'remoteReaction1586641139527'
+ public async up(queryRunner: QueryRunner): Promise<any> {
+ await queryRunner.query(`ALTER TABLE "note_reaction" ALTER COLUMN "reaction" TYPE character varying(260)`, undefined);
+ }
+
+ public async down(queryRunner: QueryRunner): Promise<any> {
+ await queryRunner.query(`ALTER TABLE "note_reaction" ALTER COLUMN "reaction" TYPE character varying(130)`, undefined);
+ }
+}