1
0
Fork 1
mirror of https://example.com synced 2024-11-27 10:36:38 +09:00
firefish/packages/backend/migration/1659042130648RecommendedTimeline.js
Kainoa Kanter 7fb130b06e formatting
2023-04-06 18:56:46 -07:00

19 lines
608 B
JavaScript

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