1
0
Fork 0

Remove unnecessary transaction (and add necessary)

This commit is contained in:
Alex Kotov 2023-03-25 02:25:48 +04:00
parent 1710afcd13
commit a672abce6e
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
12 changed files with 2 additions and 22 deletions

View file

@ -1,3 +1 @@
BEGIN;
DROP TABLE languages;
COMMIT;

View file

@ -1,3 +1 @@
BEGIN;
ALTER TABLE words ALTER COLUMN part_id DROP NOT NULL;
COMMIT;

View file

@ -1,3 +1 @@
BEGIN;
ALTER TABLE words ALTER COLUMN part_id SET NOT NULL;
COMMIT;

View file

@ -1,3 +1 @@
BEGIN;
ALTER TABLE parts ALTER COLUMN english_name SET NOT NULL;
COMMIT;

View file

@ -1,3 +1 @@
BEGIN;
ALTER TABLE parts ALTER COLUMN english_name DROP NOT NULL;
COMMIT;

View file

@ -1,3 +1 @@
BEGIN;
DROP TABLE part_names;
COMMIT;

View file

@ -1,3 +1 @@
BEGIN;
ALTER TABLE parts DROP COLUMN english_name;
COMMIT;

View file

@ -1,3 +1 @@
BEGIN;
CREATE UNIQUE INDEX word_forms_word_value_index ON word_forms (word_id, value);
COMMIT;

View file

@ -1,3 +1 @@
BEGIN;
DROP INDEX word_forms_word_value_index;
COMMIT;

View file

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

View file

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

View file

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