Skip to content

Commit 574f52d

Browse files
committed
Add migration script
1 parent 03652a7 commit 574f52d

File tree

3 files changed

+606
-5
lines changed

3 files changed

+606
-5
lines changed

init.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ CREATE TABLE IF NOT EXISTS @extschema@.pathman_config (
4141
upd_expr BOOL DEFAULT FALSE, /* update expression on next refresh? */
4242

4343
/* check for allowed part types */
44-
CHECK (parttype IN (1, 2)),
44+
CONSTRAINT pathman_config_parttype_check CHECK (parttype IN (1, 2)),
4545

4646
/* check for correct interval */
47-
CHECK (@extschema@.validate_interval_value(atttype,
48-
parttype,
49-
range_interval))
47+
CONSTRAINT pathman_config_interval_check CHECK (@extschema@.validate_interval_value(atttype,
48+
parttype,
49+
range_interval))
5050
);
5151

5252

0 commit comments

Comments
 (0)