db: delete user role enum def
This commit is contained in:
parent
0852fd37a8
commit
641bc5bfcf
|
|
@ -0,0 +1,16 @@
|
||||||
|
/*
|
||||||
|
Warnings:
|
||||||
|
|
||||||
|
- The values [male,female,other] on the enum `UserGender` will be removed. If these variants are still used in the database, this will fail.
|
||||||
|
|
||||||
|
*/
|
||||||
|
-- AlterEnum
|
||||||
|
BEGIN;
|
||||||
|
CREATE TYPE "UserGender_new" AS ENUM ('MALE', 'FEMALE', 'OTHER');
|
||||||
|
ALTER TYPE "UserGender" RENAME TO "UserGender_old";
|
||||||
|
ALTER TYPE "UserGender_new" RENAME TO "UserGender";
|
||||||
|
DROP TYPE "public"."UserGender_old";
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
-- DropEnum
|
||||||
|
DROP TYPE "Role";
|
||||||
|
|
@ -7,14 +7,9 @@ datasource db {
|
||||||
}
|
}
|
||||||
|
|
||||||
enum UserGender {
|
enum UserGender {
|
||||||
male
|
MALE
|
||||||
female
|
FEMALE
|
||||||
other
|
OTHER
|
||||||
}
|
|
||||||
|
|
||||||
enum Role {
|
|
||||||
USER
|
|
||||||
ADMIN
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum Sentiment {
|
enum Sentiment {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue