インスタンス運営者がピン留めユーザーを設定できるように

Related #4892
This commit is contained in:
syuilo
2019-05-10 17:30:28 +09:00
parent 756e4eaeec
commit 8e6da3a0d9
8 changed files with 81 additions and 2 deletions

View File

@ -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"`);
}
}