1
0
Fork 0

Add column words.commentary

This commit is contained in:
Alex Kotov 2023-02-19 08:58:03 +04:00
parent f9f0dbe246
commit 60c0b2d775
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,3 @@
BEGIN;
ALTER TABLE words DROP COLUMN commentary;
COMMIT;

View 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;