1
0
Fork 1
mirror of https://example.com synced 2024-11-26 23:56:39 +09:00
firefish/packages/backend/migration/1672882664294-DefaultReaction.js

17 lines
475 B
JavaScript
Raw Normal View History

2023-07-20 04:17:05 +09:00
export class DefaultReaction1672882664294 {
name = "DefaultReaction1672882664294";
async up(queryRunner) {
await queryRunner.query(
`ALTER TABLE "meta" ADD "defaultReaction" character varying(256) NOT NULL DEFAULT '⭐'`,
);
await queryRunner.query(
`COMMENT ON COLUMN "meta"."defaultReaction" IS 'The fallback reaction for emoji reacts'`,
);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "defaultReaction"`);
}
}