mirror of
https://example.com
synced 2024-11-23 05:26:37 +09:00
18 lines
550 B
JavaScript
18 lines
550 B
JavaScript
|
export class EmojiModerator1692825433698 {
|
||
|
name = "EmojiModerator1692825433698";
|
||
|
|
||
|
async up(queryRunner) {
|
||
|
await queryRunner.query(
|
||
|
`CREATE TYPE "public"."user_emojimodperm_enum" AS ENUM('none', 'add', 'mod', 'full')`,
|
||
|
);
|
||
|
await queryRunner.query(
|
||
|
`ALTER TABLE "user" ADD "emojiModPerm" "public"."user_emojimodperm_enum" NOT NULL DEFAULT 'none'`,
|
||
|
);
|
||
|
}
|
||
|
|
||
|
async down(queryRunner) {
|
||
|
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "emojiModPerm"`);
|
||
|
await queryRunner.query(`DROP TYPE "public"."user_emojimodperm_enum"`);
|
||
|
}
|
||
|
}
|