Remove unnecessary transaction (and add necessary)
This commit is contained in:
parent
1710afcd13
commit
a672abce6e
12 changed files with 2 additions and 22 deletions
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
DROP TABLE languages;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
ALTER TABLE words ALTER COLUMN part_id DROP NOT NULL;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
ALTER TABLE words ALTER COLUMN part_id SET NOT NULL;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
ALTER TABLE parts ALTER COLUMN english_name SET NOT NULL;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
ALTER TABLE parts ALTER COLUMN english_name DROP NOT NULL;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
DROP TABLE part_names;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
ALTER TABLE parts DROP COLUMN english_name;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
CREATE UNIQUE INDEX word_forms_word_value_index ON word_forms (word_id, value);
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
DROP INDEX word_forms_word_value_index;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
ALTER TABLE words DROP COLUMN commentary;
|
||||
COMMIT;
|
||||
|
|
|
@ -1,3 +1 @@
|
|||
BEGIN;
|
||||
ALTER TABLE words DROP COLUMN inflections;
|
||||
COMMIT;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue