merca y ch
This commit is contained in:
12
prisma/migrations/0006_add_projects_department/migration.sql
Normal file
12
prisma/migrations/0006_add_projects_department/migration.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
DO $$
|
||||
BEGIN
|
||||
IF NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM pg_type t
|
||||
JOIN pg_enum e ON t.oid = e.enumtypid
|
||||
WHERE t.typname = 'DepartmentKey'
|
||||
AND e.enumlabel = 'proyectos'
|
||||
) THEN
|
||||
ALTER TYPE "public"."DepartmentKey" ADD VALUE 'proyectos';
|
||||
END IF;
|
||||
END $$;
|
||||
Reference in New Issue
Block a user