@danielcok17/prisma-db 1.13.4 → 1.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/prisma/migrations/20260307120000_add_phone_occupation_preferred_language/migration.sql
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
-- Add LEGAL_OPINION to ReferenceType enum (if not exists)
|
|
2
|
+
DO $$
|
|
3
|
+
BEGIN
|
|
4
|
+
IF NOT EXISTS (
|
|
5
|
+
SELECT 1 FROM pg_enum
|
|
6
|
+
WHERE enumtypid = (SELECT oid FROM pg_type WHERE typname = 'ReferenceType')
|
|
7
|
+
AND enumlabel = 'LEGAL_OPINION'
|
|
8
|
+
) THEN
|
|
9
|
+
ALTER TYPE "ReferenceType" ADD VALUE 'LEGAL_OPINION';
|
|
10
|
+
END IF;
|
|
11
|
+
END
|
|
12
|
+
$$;
|
|
13
|
+
|
|
14
|
+
-- AlterTable: Add new profile fields to User (if not exist)
|
|
15
|
+
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "phone" TEXT;
|
|
16
|
+
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "occupation" TEXT;
|
|
17
|
+
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "preferredLanguage" TEXT DEFAULT 'sk';
|