mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 11:57:34 -07:00
30a9370d39
* wip * wip * wip * wip * Update ja-JP.yml * wip * wip * wip
14 lines
643 B
TypeScript
14 lines
643 B
TypeScript
import {MigrationInterface, QueryRunner} from "typeorm";
|
|
|
|
export class instancePinnedPages1605585339718 implements MigrationInterface {
|
|
name = 'instancePinnedPages1605585339718'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "meta" ADD "pinnedPages" character varying(512) array NOT NULL DEFAULT '{"/announcements", "/featured", "/channels", "/pages", "/explore", "/games/reversi", "/about-misskey"}'::varchar[]`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "pinnedPages"`);
|
|
}
|
|
|
|
}
|