calckey/packages/backend/migration/1659042130648RecommendedTim...

12 lines
589 B
JavaScript
Raw Permalink Normal View History

2022-07-29 04:28:13 +00:00
export class RecommendedTimeline1659042130648 {
name = 'RecommendedTimeline1659042130648'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" ADD "disableRecommendedTimeline" boolean NOT NULL DEFAULT true`);
await queryRunner.query(`ALTER TABLE "meta" ADD "recommendedInstances" character varying(256) array NOT NULL DEFAULT '{}'::varchar[]`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "disableRecommendedTimeline"`);
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "recommendedInstances"`);
}
}