Files
FrozenFriendsYume/packages/backend/built/migration/1697733603329-user-list-options.js
T
2026-07-26 18:25:37 +09:00

12 lines
682 B
JavaScript

export class UserListOptions1697733603329 {
name = 'UserListOptions1697733603329';
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user_list" ADD "hideFromHomeTl" boolean NOT NULL DEFAULT false`);
await queryRunner.query(`COMMENT ON COLUMN "user_list"."hideFromHomeTl" IS 'Whether posts from list members should be hidden from the home timeline.'`);
}
async down(queryRunner) {
await queryRunner.query(`COMMENT ON COLUMN "user_list"."hideFromHomeTl" IS 'Whether posts from list members should be hidden from the home timeline.'`);
await queryRunner.query(`ALTER TABLE "user_list" DROP COLUMN "hideFromHomeTl"`);
}
}