diff --git a/20230305163159_inflections.down.sql b/20230305163159_inflections.down.sql new file mode 100644 index 0000000..5eb6628 --- /dev/null +++ b/20230305163159_inflections.down.sql @@ -0,0 +1 @@ +DROP TABLE inflections; diff --git a/20230305163159_inflections.up.sql b/20230305163159_inflections.up.sql new file mode 100644 index 0000000..ac91922 --- /dev/null +++ b/20230305163159_inflections.up.sql @@ -0,0 +1,9 @@ +CREATE TABLE inflections ( +-- name type constraints + id BIGSERIAL PRIMARY KEY, + part_id BIGINT NOT NULL REFERENCES parts (id), + descr VARCHAR NOT NULL, + +-- CONSTRAINT name CHECK (condition) + CONSTRAINT descr_is_sane_text CHECK (is_sane_text(descr)) +);