diff --git a/20230125152306_languages.down.sql b/20230125152306_languages.down.sql index 4d36f7f..d4cb904 100644 --- a/20230125152306_languages.down.sql +++ b/20230125152306_languages.down.sql @@ -1,3 +1 @@ -BEGIN; DROP TABLE languages; -COMMIT; diff --git a/20230218074832_require_word_part_id.down.sql b/20230218074832_require_word_part_id.down.sql index a532312..d465dbe 100644 --- a/20230218074832_require_word_part_id.down.sql +++ b/20230218074832_require_word_part_id.down.sql @@ -1,3 +1 @@ -BEGIN; ALTER TABLE words ALTER COLUMN part_id DROP NOT NULL; -COMMIT; diff --git a/20230218074832_require_word_part_id.up.sql b/20230218074832_require_word_part_id.up.sql index efdf01d..9f24caf 100644 --- a/20230218074832_require_word_part_id.up.sql +++ b/20230218074832_require_word_part_id.up.sql @@ -1,3 +1 @@ -BEGIN; ALTER TABLE words ALTER COLUMN part_id SET NOT NULL; -COMMIT; diff --git a/20230218091110_do_not_require_part_english_name.down.sql b/20230218091110_do_not_require_part_english_name.down.sql index 95a5061..04909ba 100644 --- a/20230218091110_do_not_require_part_english_name.down.sql +++ b/20230218091110_do_not_require_part_english_name.down.sql @@ -1,3 +1 @@ -BEGIN; ALTER TABLE parts ALTER COLUMN english_name SET NOT NULL; -COMMIT; diff --git a/20230218091110_do_not_require_part_english_name.up.sql b/20230218091110_do_not_require_part_english_name.up.sql index c527ad1..c3ef7c4 100644 --- a/20230218091110_do_not_require_part_english_name.up.sql +++ b/20230218091110_do_not_require_part_english_name.up.sql @@ -1,3 +1 @@ -BEGIN; ALTER TABLE parts ALTER COLUMN english_name DROP NOT NULL; -COMMIT; diff --git a/20230218100109_translate_parts.down.sql b/20230218100109_translate_parts.down.sql index f79474e..9b72870 100644 --- a/20230218100109_translate_parts.down.sql +++ b/20230218100109_translate_parts.down.sql @@ -1,3 +1 @@ -BEGIN; DROP TABLE part_names; -COMMIT; diff --git a/20230218104748_remove_part_english_names.up.sql b/20230218104748_remove_part_english_names.up.sql index a4f32cb..67b9de7 100644 --- a/20230218104748_remove_part_english_names.up.sql +++ b/20230218104748_remove_part_english_names.up.sql @@ -1,3 +1 @@ -BEGIN; ALTER TABLE parts DROP COLUMN english_name; -COMMIT; diff --git a/20230218115851_remove_unique_index_on_word_forms_of_word_value.down.sql b/20230218115851_remove_unique_index_on_word_forms_of_word_value.down.sql index 91e08da..0524758 100644 --- a/20230218115851_remove_unique_index_on_word_forms_of_word_value.down.sql +++ b/20230218115851_remove_unique_index_on_word_forms_of_word_value.down.sql @@ -1,3 +1 @@ -BEGIN; CREATE UNIQUE INDEX word_forms_word_value_index ON word_forms (word_id, value); -COMMIT; diff --git a/20230218115851_remove_unique_index_on_word_forms_of_word_value.up.sql b/20230218115851_remove_unique_index_on_word_forms_of_word_value.up.sql index d0569e9..a162d11 100644 --- a/20230218115851_remove_unique_index_on_word_forms_of_word_value.up.sql +++ b/20230218115851_remove_unique_index_on_word_forms_of_word_value.up.sql @@ -1,3 +1 @@ -BEGIN; DROP INDEX word_forms_word_value_index; -COMMIT; diff --git a/20230219045623_word_commentary.down.sql b/20230219045623_word_commentary.down.sql index 45746b2..f17591b 100644 --- a/20230219045623_word_commentary.down.sql +++ b/20230219045623_word_commentary.down.sql @@ -1,3 +1 @@ -BEGIN; ALTER TABLE words DROP COLUMN commentary; -COMMIT; diff --git a/20230219051357_word_inflections.down.sql b/20230219051357_word_inflections.down.sql index f7013c2..0f6a2f1 100644 --- a/20230219051357_word_inflections.down.sql +++ b/20230219051357_word_inflections.down.sql @@ -1,3 +1 @@ -BEGIN; ALTER TABLE words DROP COLUMN inflections; -COMMIT; diff --git a/20230324221957_remove_inflections.down.sql b/20230324221957_remove_inflections.down.sql index 0998499..f086bcc 100644 --- a/20230324221957_remove_inflections.down.sql +++ b/20230324221957_remove_inflections.down.sql @@ -1,3 +1,5 @@ +BEGIN; ALTER TABLE words ADD COLUMN inflections TEXT; ALTER TABLE words ADD CONSTRAINT inflections_is_sane_text CHECK (is_sane_text(inflections)); +COMMIT;