1
0
Fork 0
database/20230219045623_word_commentary.up.sql

5 lines
156 B
PL/PgSQL

BEGIN;
ALTER TABLE words ADD COLUMN commentary TEXT;
ALTER TABLE words ADD CONSTRAINT commentary_is_sane_text
CHECK (is_sane_text(commentary));
COMMIT;