1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-30 06:28:31 +09:00
misskey/migration/1557476068003-PinnedUsers.ts

14 lines
487 B
TypeScript
Raw Normal View History

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