migrate to blitzjs
This commit is contained in:
12
db/migrations/20210727125716_user_role_enum/migration.sql
Normal file
12
db/migrations/20210727125716_user_role_enum/migration.sql
Normal file
@ -0,0 +1,12 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- The `role` column on the `User` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
||||
|
||||
*/
|
||||
-- CreateEnum
|
||||
CREATE TYPE "Role" AS ENUM ('USER', 'ADMIN');
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "User" DROP COLUMN "role",
|
||||
ADD COLUMN "role" "Role" NOT NULL DEFAULT E'USER';
|
Reference in New Issue
Block a user