diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-10 17:30:28 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-10 17:30:28 +0900 |
| commit | 8e6da3a0d9f2f6dbd8f1009e1accdb4e4ebae169 (patch) | |
| tree | 464f6e908de12e86eec16ec918adfe3be387b166 /migration | |
| parent | テキストのリスト内で変数埋め込みできるように (diff) | |
| download | sharkey-8e6da3a0d9f2f6dbd8f1009e1accdb4e4ebae169.tar.gz sharkey-8e6da3a0d9f2f6dbd8f1009e1accdb4e4ebae169.tar.bz2 sharkey-8e6da3a0d9f2f6dbd8f1009e1accdb4e4ebae169.zip | |
インスタンス運営者がピン留めユーザーを設定できるように
Related #4892
Diffstat (limited to 'migration')
| -rw-r--r-- | migration/1557476068003-PinnedUsers.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/migration/1557476068003-PinnedUsers.ts b/migration/1557476068003-PinnedUsers.ts new file mode 100644 index 0000000000..4e7222aafc --- /dev/null +++ b/migration/1557476068003-PinnedUsers.ts @@ -0,0 +1,13 @@ +import {MigrationInterface, QueryRunner} from "typeorm"; + +export class PinnedUsers1557476068003 implements MigrationInterface { + + public async up(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query(`ALTER TABLE "meta" ADD "pinnedUsers" character varying(256) array NOT NULL DEFAULT '{}'::varchar[]`); + } + + public async down(queryRunner: QueryRunner): Promise<any> { + await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "pinnedUsers"`); + } + +} |