1
0
Fork 1
mirror of https://example.com synced 2024-11-23 10:16:38 +09:00
firefish/packages/backend/migration-neko/1699658378432-emojimod-enum-relabel.js

15 lines
396 B
JavaScript

export class EmojimodEnumRelabel1699658378432 {
name = "EmojimodEnumRelabel1699658378432";
async up(queryRunner) {
await queryRunner.query(
`ALTER TYPE "public"."user_emojimodperm_enum" RENAME VALUE 'none' TO 'unauthorized'`,
);
}
async down(queryRunner) {
await queryRunner.query(
`ALTER TYPE "public"."user_emojimodperm_enum" RENAME VALUE 'unauthorized' TO 'none'`,
);
}
}