summaryrefslogtreecommitdiff
path: root/migration/1557476068003-PinnedUsers.ts
blob: 4e7222aafc8fb7278f153a10792846327fbf9c5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"`);
    }

}