You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -146,9 +146,8 @@ COMMENT ON TYPE @extschema@.DML IS 'Data Manipulation Language';
146
146
*/
147
147
CREATE TABLE @extschema@."history"
148
148
(
149
-
"primary_key" JSONB
150
-
CONSTRAINT"check_primary_key"CHECK ( ("dml"='INSERT'AND"primary_key" IS NULL) OR ("primary_key"IS NOT NULLAND"primary_key"!='{}'AND jsonb_typeof("primary_key") ='object') ),
151
-
"dml" @extschema@.DML NOT NULL,
149
+
"primary_key" JSONB NOT NULL,
150
+
"dml"public.DMLNOT NULL,
152
151
"data" JSONB
153
152
CONSTRAINT"check_data"CHECK ( ("dml"='DELETE'AND"data" IS NULL) OR ("data"IS NOT NULLAND"data"!='{}'AND jsonb_typeof("data") ='object') ),
Copy file name to clipboardexpand all lines: tables/history.sql
+2-3
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
CREATETABLEpublic."history"
2
2
(
3
-
"primary_key" JSONB
4
-
CONSTRAINT"check_primary_key"CHECK ( ("dml"='INSERT'AND"primary_key" IS NULL) OR ("primary_key"IS NOT NULLAND"primary_key"!='{}'AND jsonb_typeof("primary_key") ='object') ),
5
-
"dml"public.DMLNOT NULL,
3
+
"primary_key" JSONB NOT NULL,
4
+
"dml"public.DMLNOT NULL,
6
5
"data" JSONB
7
6
CONSTRAINT"check_data"CHECK ( ("dml"='DELETE'AND"data" IS NULL) OR ("data"IS NOT NULLAND"data"!='{}'AND jsonb_typeof("data") ='object') ),
0 commit comments