1
0
Fork 1
mirror of https://example.com synced 2024-11-27 00:26:39 +09:00
firefish/packages/backend/migration/1682891890317-InstanceSilence.js

14 lines
351 B
JavaScript
Raw Normal View History

2023-07-20 04:17:05 +09:00
export class InstanceSilence1682891890317 {
name = "InstanceSilence1682891890317";
async up(queryRunner) {
await queryRunner.query(
`ALTER TABLE "meta" ADD "silencedHosts" character varying(256) array NOT NULL DEFAULT '{}'`,
);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "silencedHosts"`);
}
}