From 82fb7fa284cb7152a0be7d65dd683ddfdeb3c33d Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 18 Feb 2023 17:45:03 +0400 Subject: [PATCH] Revert "Add column `translation_texts.commentary`" This reverts commit 7c6520c91c114b60b62d92500ef69b8b9def629c. --- 20230218130437_translations.up.sql | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/20230218130437_translations.up.sql b/20230218130437_translations.up.sql index e925664..e04c033 100644 --- a/20230218130437_translations.up.sql +++ b/20230218130437_translations.up.sql @@ -16,12 +16,9 @@ CREATE TABLE translation_texts ( translation_id BIGINT NOT NULL REFERENCES translations (id), lang_id BIGINT NOT NULL REFERENCES languages (id), value TEXT NOT NULL, - commentary TEXT, --- CONSTRAINT name CHECK (condition) - CONSTRAINT value_is_sane_text CHECK (is_sane_text(value)), - CONSTRAINT commentary_is_sane_text CHECK (commentary IS NULL OR - is_sane_text(commentary)) +-- CONSTRAINT name CHECK (condition) + CONSTRAINT value_is_sane_text CHECK (is_sane_text(value)) ); CREATE UNIQUE INDEX translations_word_index ON translations (word_id, index);