From 1710afcd13924e6d11d682cdda7721b605b5df79 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 25 Mar 2023 02:21:13 +0400 Subject: [PATCH] Remove column `words.inflections` --- 20230324221957_remove_inflections.down.sql | 3 +++ 20230324221957_remove_inflections.up.sql | 1 + 2 files changed, 4 insertions(+) create mode 100644 20230324221957_remove_inflections.down.sql create mode 100644 20230324221957_remove_inflections.up.sql diff --git a/20230324221957_remove_inflections.down.sql b/20230324221957_remove_inflections.down.sql new file mode 100644 index 0000000..0998499 --- /dev/null +++ b/20230324221957_remove_inflections.down.sql @@ -0,0 +1,3 @@ +ALTER TABLE words ADD COLUMN inflections TEXT; +ALTER TABLE words ADD CONSTRAINT inflections_is_sane_text + CHECK (is_sane_text(inflections)); diff --git a/20230324221957_remove_inflections.up.sql b/20230324221957_remove_inflections.up.sql new file mode 100644 index 0000000..0f6a2f1 --- /dev/null +++ b/20230324221957_remove_inflections.up.sql @@ -0,0 +1 @@ +ALTER TABLE words DROP COLUMN inflections;