mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
17 lines
620 B
TypeScript
17 lines
620 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
export class DefaultReaction1672882664294 implements MigrationInterface {
|
|
name = "DefaultReaction1672882664294";
|
|
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
|
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: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "defaultReaction"`);
|
|
}
|
|
}
|