Add column words.commentary
This commit is contained in:
parent
f9f0dbe246
commit
60c0b2d775
2 changed files with 8 additions and 0 deletions
3
20230219045623_word_commentary.down.sql
Normal file
3
20230219045623_word_commentary.down.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
BEGIN;
|
||||
ALTER TABLE words DROP COLUMN commentary;
|
||||
COMMIT;
|
5
20230219045623_word_commentary.up.sql
Normal file
5
20230219045623_word_commentary.up.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
BEGIN;
|
||||
ALTER TABLE words ADD COLUMN commentary TEXT;
|
||||
ALTER TABLE words ADD CONSTRAINT commentary_is_sane_text
|
||||
CHECK (is_sane_text(commentary));
|
||||
COMMIT;
|
Loading…
Reference in a new issue