mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Merge pull request #3104 from FOCONIS/dbmigration-fixes
Fixed DbMigration classes (put them in the right place)
This commit is contained in:
@@ -83,9 +83,14 @@ public class DbMigrationTest extends BaseTestCase {
|
||||
"`migtest_QuOtEd`",
|
||||
"migtest_QuOtEd",
|
||||
"\"migtest_QuOtEd\"",
|
||||
"drop_main_drop_ref_many",
|
||||
"drop_ref_many",
|
||||
"drop_ref_one",
|
||||
"drop_main",
|
||||
"table",
|
||||
"\"table\"",
|
||||
"`table`");
|
||||
|
||||
((DataSourcePool)server().dataSource()).offline();
|
||||
((DataSourcePool)server().dataSource()).online();
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
The migration dir contains 3 folders `v1_0`, `v1_1`, `v1_2`.
|
||||
|
||||
The general idea is, that we try to perform a migration (=`v1.0` -> `v1.1`) and also if it is revertable (= `v1.1` -> `v1.0`)
|
||||
|
||||
To achieve that, the directories `v1_0` and `v1_2` should be as equal as possible. Annomalies should be commented.
|
||||
|
||||
It is also important, if new models are added, that all table names (also for M2M) are added in the `DbMigrationTest`
|
||||
cleanup routine.
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package misc.migration.v1_0;
|
||||
package misc.migration.v1_1;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.util.List;
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
package misc.migration.v1_0;
|
||||
package misc.migration.v1_1;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToMany;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
import java.util.List;
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package misc.migration.v1_0;
|
||||
package misc.migration.v1_1;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
@@ -11,6 +11,10 @@ import java.util.List;
|
||||
|
||||
@Entity
|
||||
@Table(name = "migtest_e_basic")
|
||||
// Note: tablespaces are currently only supported for DB2
|
||||
// to be prepared for future (when we support sql server filegroups),
|
||||
// we allow to specify the DB-platform here
|
||||
@Tablespace(value = "db2;TSTABLES;", index = "db2;INDEXTS;")
|
||||
public class EBasic {
|
||||
|
||||
public enum Status {
|
||||
@@ -86,7 +90,7 @@ public class EBasic {
|
||||
String indextest6;
|
||||
|
||||
@NotNull
|
||||
@DbDefault("23")
|
||||
@DbDefault("23") // required for revert
|
||||
int user_id;
|
||||
|
||||
public EBasic() {
|
||||
|
||||
@@ -21,6 +21,6 @@ public class EHistory6 {
|
||||
Integer testNumber1;
|
||||
|
||||
@NotNull
|
||||
@DbDefault("7")
|
||||
@DbDefault("7") // required for revert
|
||||
Integer testNumber2;
|
||||
}
|
||||
|
||||
@@ -45,4 +45,13 @@ public class ETable {
|
||||
|
||||
@OneToMany(mappedBy = "foreign")
|
||||
List<ETable> foreigns;
|
||||
|
||||
// @NotNull
|
||||
// @DbDefault("")
|
||||
// private String textfield;
|
||||
// FIXME: MariaDb produces an invalid quoted statement. We would need to fix quotes here.
|
||||
// but using reserved names for tables is a bad idea IMHO
|
||||
// actual: update "table" set textfield = '' where textfield is null;
|
||||
// expected: update `table` set textfield = '' where textfield is null;
|
||||
|
||||
}
|
||||
|
||||
-4
@@ -7,9 +7,5 @@ alter table migtest_e_basic drop column eref_id;
|
||||
alter table migtest_e_history2 drop column obsolete_string1;
|
||||
alter table migtest_e_history2 drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists "migtest_QuOtEd";
|
||||
drop table if exists migtest_e_ref;
|
||||
|
||||
+4
@@ -17,6 +17,10 @@ alter table migtest_e_history5 drop column test_boolean;
|
||||
alter table migtest_e_softdelete drop column deleted;
|
||||
alter table migtest_oto_child drop column master_id;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists migtest_e_user;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
drop table if exists migtest_mtm_m_migtest_mtm_c;
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
1672735407, 1.0__initial.sql
|
||||
540706946, 1.1.sql
|
||||
-875723380, 1.2__dropsFor_1.1.sql
|
||||
688811494, 1.2__dropsFor_1.1.sql
|
||||
1015552567, 1.3.sql
|
||||
255653518, 1.4__dropsFor_1.3.sql
|
||||
677297367, 1.4__dropsFor_1.3.sql
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ alter table migtest_e_basic drop constraint if exists ck_migtest_e_basic_status2
|
||||
drop index uq_migtest_e_basic_indextest2 cascade;
|
||||
drop index uq_migtest_e_basic_indextest6 cascade;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table if exists drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table if exists drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table if exists drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
drop index if exists ix_migtest_e_basic_indextest1;
|
||||
drop index if exists ix_migtest_e_basic_indextest5;
|
||||
drop index if exists ix_migtest_quoted_status1;
|
||||
|
||||
-7
@@ -7,13 +7,6 @@ alter table migtest_e_basic drop column eref_id;
|
||||
alter table migtest_e_history2 drop column obsolete_string1;
|
||||
alter table migtest_e_history2 drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main cascade;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many cascade;
|
||||
drop table if exists drop_ref_many cascade;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one cascade;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists "migtest_QuOtEd" cascade;
|
||||
drop table if exists migtest_e_ref cascade;
|
||||
drop sequence if exists migtest_e_ref_seq;
|
||||
|
||||
@@ -14,6 +14,9 @@ drop index uq_migtest_e_basic_name cascade;
|
||||
drop index uq_migtest_e_basic_indextest4 cascade;
|
||||
drop index uq_migtest_e_basic_indextest5 cascade;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table if exists drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table if exists drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table if exists drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
alter table if exists migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table if exists migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table if exists migtest_mtm_m_migtest_mtm_c drop constraint if exists fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
+7
@@ -17,6 +17,13 @@ alter table migtest_e_history5 drop column test_boolean;
|
||||
alter table migtest_e_softdelete drop column deleted;
|
||||
alter table migtest_oto_child drop column master_id;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main cascade;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many cascade;
|
||||
drop table if exists drop_ref_many cascade;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one cascade;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists migtest_e_user cascade;
|
||||
drop sequence if exists migtest_e_user_seq;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m cascade;
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
1867456246, 1.0__initial.sql
|
||||
-412570267, 1.1.sql
|
||||
395394572, 1.2__dropsFor_1.1.sql
|
||||
-861259583, 1.3.sql
|
||||
-971909974, 1.4__dropsFor_1.3.sql
|
||||
1284257915, 1.1.sql
|
||||
856096334, 1.2__dropsFor_1.1.sql
|
||||
-279468991, 1.3.sql
|
||||
2137365848, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -65,27 +65,6 @@ end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_MAIN' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_REF_MANY' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_REF_ONE_PARENT_ID' and ucase(tabname) = 'DROP_REF_ONE') then
|
||||
prepare stmt from 'alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select indname from syscat.indexes where indschema = current_schema and ucase(indname) = 'IX_MIGTEST_E_BASIC_INDEXTEST1') then
|
||||
prepare stmt from 'drop index ix_migtest_e_basic_indextest1';
|
||||
execute stmt;
|
||||
|
||||
@@ -15,31 +15,6 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
||||
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
||||
-- apply post alter
|
||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||
drop table drop_main;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_MAIN_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_main_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_main_drop_ref_many;
|
||||
drop table drop_ref_many;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_MANY_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_many_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_ref_one;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_ONE_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_one_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table "migtest_QuOtEd";
|
||||
drop table migtest_e_ref;
|
||||
delimiter $$
|
||||
|
||||
@@ -135,6 +135,27 @@ end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_MAIN' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_REF_MANY' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_REF_ONE_PARENT_ID' and ucase(tabname) = 'DROP_REF_ONE') then
|
||||
prepare stmt from 'alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_MIGTEST_MTM_C_MIGTEST_MTM_M_MIGTEST_MTM_C' and ucase(tabname) = 'MIGTEST_MTM_C_MIGTEST_MTM_M') then
|
||||
prepare stmt from 'alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c';
|
||||
execute stmt;
|
||||
@@ -211,6 +232,7 @@ update migtest_e_basic set status2 = 'N' where status2 is null;
|
||||
update migtest_e_basic set a_lob = 'X' where a_lob is null;
|
||||
|
||||
update migtest_e_basic set user_id = 23 where user_id is null;
|
||||
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_E_BASIC','TSTABLES','INDEXTS','TSTABLES','','','','','','MOVE');
|
||||
alter table migtest_e_history2 drop versioning;
|
||||
alter table migtest_e_history3 drop versioning;
|
||||
alter table migtest_e_history4 drop versioning;
|
||||
|
||||
@@ -48,6 +48,31 @@ drop table migtest_e_history_history;
|
||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
||||
alter table "table" add versioning use history table table_history;
|
||||
drop table drop_main;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_MAIN_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_main_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_main_drop_ref_many;
|
||||
drop table drop_ref_many;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_MANY_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_many_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_ref_one;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_ONE_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_one_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table migtest_e_user;
|
||||
delimiter $$
|
||||
begin
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-283216660, 1.0__initial.sql
|
||||
1120848440, 1.1.sql
|
||||
135256939, 1.2__dropsFor_1.1.sql
|
||||
-2139056187, 1.3.sql
|
||||
946163478, 1.4__dropsFor_1.3.sql
|
||||
-184000413, 1.1.sql
|
||||
-1187336846, 1.2__dropsFor_1.1.sql
|
||||
-1811865535, 1.3.sql
|
||||
-1255430844, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ alter table migtest_e_basic drop constraint if exists ck_migtest_e_basic_status2
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest6;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
drop index if exists ix_migtest_e_basic_indextest1;
|
||||
drop index if exists ix_migtest_e_basic_indextest5;
|
||||
drop index if exists ix_migtest_quoted_status1;
|
||||
|
||||
-4
@@ -7,9 +7,5 @@ alter table migtest_e_basic drop column eref_id;
|
||||
alter table migtest_e_history2 drop column obsolete_string1;
|
||||
alter table migtest_e_history2 drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists "migtest_QuOtEd";
|
||||
drop table if exists migtest_e_ref;
|
||||
|
||||
@@ -14,6 +14,9 @@ alter table migtest_e_basic drop constraint uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest5;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop constraint if exists fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
+4
@@ -17,6 +17,10 @@ alter table migtest_e_history5 drop column test_boolean;
|
||||
alter table migtest_e_softdelete drop column deleted;
|
||||
alter table migtest_oto_child drop column master_id;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists migtest_e_user;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
drop table if exists migtest_mtm_m_migtest_mtm_c;
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
-528359263, 1.0__initial.sql
|
||||
-1374084944, 1.1.sql
|
||||
-875723380, 1.2__dropsFor_1.1.sql
|
||||
-819139044, 1.3.sql
|
||||
255653518, 1.4__dropsFor_1.3.sql
|
||||
253988246, 1.1.sql
|
||||
688811494, 1.2__dropsFor_1.1.sql
|
||||
674925120, 1.3.sql
|
||||
677297367, 1.4__dropsFor_1.3.sql
|
||||
|
||||
|
||||
@@ -65,27 +65,6 @@ end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_MAIN' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_REF_MANY' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_REF_ONE_PARENT_ID' and ucase(tabname) = 'DROP_REF_ONE') then
|
||||
prepare stmt from 'alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select indname from syscat.indexes where indschema = current_schema and ucase(indname) = 'IX_MIGTEST_E_BASIC_INDEXTEST1') then
|
||||
prepare stmt from 'drop index ix_migtest_e_basic_indextest1';
|
||||
execute stmt;
|
||||
|
||||
@@ -15,31 +15,6 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
||||
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
||||
-- apply post alter
|
||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||
drop table drop_main;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_MAIN_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_main_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_main_drop_ref_many;
|
||||
drop table drop_ref_many;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_MANY_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_many_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_ref_one;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_ONE_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_one_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table "migtest_QuOtEd";
|
||||
drop table migtest_e_ref;
|
||||
delimiter $$
|
||||
|
||||
@@ -135,6 +135,27 @@ end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_MAIN' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_REF_MANY' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_REF_ONE_PARENT_ID' and ucase(tabname) = 'DROP_REF_ONE') then
|
||||
prepare stmt from 'alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_MIGTEST_MTM_C_MIGTEST_MTM_M_MIGTEST_MTM_C' and ucase(tabname) = 'MIGTEST_MTM_C_MIGTEST_MTM_M') then
|
||||
prepare stmt from 'alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c';
|
||||
execute stmt;
|
||||
@@ -211,6 +232,7 @@ update migtest_e_basic set status2 = 'N' where status2 is null;
|
||||
update migtest_e_basic set a_lob = 'X' where a_lob is null;
|
||||
|
||||
update migtest_e_basic set user_id = 23 where user_id is null;
|
||||
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_E_BASIC','TSTABLES','INDEXTS','TSTABLES','','','','','','MOVE');
|
||||
alter table migtest_e_history2 drop versioning;
|
||||
alter table migtest_e_history3 drop versioning;
|
||||
alter table migtest_e_history4 drop versioning;
|
||||
|
||||
@@ -48,6 +48,31 @@ drop table migtest_e_history_history;
|
||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
||||
alter table "table" add versioning use history table table_history;
|
||||
drop table drop_main;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_MAIN_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_main_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_main_drop_ref_many;
|
||||
drop table drop_ref_many;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_MANY_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_many_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_ref_one;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_ONE_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_one_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table migtest_e_user;
|
||||
delimiter $$
|
||||
begin
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
1307787475, I__create_tablespaces.sql
|
||||
1681764655, 1.0__initial.sql
|
||||
1259437403, 1.1.sql
|
||||
135256939, 1.2__dropsFor_1.1.sql
|
||||
1091218936, 1.3.sql
|
||||
946163478, 1.4__dropsFor_1.3.sql
|
||||
-1450326352, 1.1.sql
|
||||
-1187336846, 1.2__dropsFor_1.1.sql
|
||||
469192394, 1.3.sql
|
||||
-1255430844, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -65,27 +65,6 @@ end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_MAIN' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_REF_MANY' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_REF_ONE_PARENT_ID' and ucase(tabname) = 'DROP_REF_ONE') then
|
||||
prepare stmt from 'alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select indname from syscat.indexes where indschema = current_schema and ucase(indname) = 'IX_MIGTEST_E_BASIC_INDEXTEST1') then
|
||||
prepare stmt from 'drop index ix_migtest_e_basic_indextest1';
|
||||
execute stmt;
|
||||
|
||||
@@ -15,31 +15,6 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
||||
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
||||
-- apply post alter
|
||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||
drop table drop_main;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_MAIN_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_main_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_main_drop_ref_many;
|
||||
drop table drop_ref_many;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_MANY_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_many_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_ref_one;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_ONE_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_one_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table "migtest_QuOtEd";
|
||||
drop table migtest_e_ref;
|
||||
delimiter $$
|
||||
|
||||
@@ -135,6 +135,27 @@ end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_MAIN' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_MAIN_DROP_REF_MANY_DROP_REF_MANY' and ucase(tabname) = 'DROP_MAIN_DROP_REF_MANY') then
|
||||
prepare stmt from 'alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_DROP_REF_ONE_PARENT_ID' and ucase(tabname) = 'DROP_REF_ONE') then
|
||||
prepare stmt from 'alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select constname from syscat.tabconst where tabschema = current_schema and ucase(constname) = 'FK_MIGTEST_MTM_C_MIGTEST_MTM_M_MIGTEST_MTM_C' and ucase(tabname) = 'MIGTEST_MTM_C_MIGTEST_MTM_M') then
|
||||
prepare stmt from 'alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c';
|
||||
execute stmt;
|
||||
@@ -211,6 +232,7 @@ update migtest_e_basic set status2 = 'N' where status2 is null;
|
||||
update migtest_e_basic set a_lob = 'X' where a_lob is null;
|
||||
|
||||
update migtest_e_basic set user_id = 23 where user_id is null;
|
||||
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_E_BASIC','TSTABLES','INDEXTS','TSTABLES','','','','','','MOVE');
|
||||
alter table migtest_e_history2 drop versioning;
|
||||
alter table migtest_e_history3 drop versioning;
|
||||
alter table migtest_e_history4 drop versioning;
|
||||
|
||||
@@ -48,6 +48,31 @@ drop table migtest_e_history_history;
|
||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
||||
alter table "table" add versioning use history table table_history;
|
||||
drop table drop_main;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_MAIN_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_main_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_main_drop_ref_many;
|
||||
drop table drop_ref_many;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_MANY_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_many_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table drop_ref_one;
|
||||
delimiter $$
|
||||
begin
|
||||
if exists (select seqschema from syscat.sequences where seqschema = current_schema and ucase(seqname) = 'DROP_REF_ONE_SEQ') then
|
||||
prepare stmt from 'drop sequence drop_ref_one_seq';
|
||||
execute stmt;
|
||||
end if;
|
||||
end$$;
|
||||
drop table migtest_e_user;
|
||||
delimiter $$
|
||||
begin
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
1681764655, 1.0__initial.sql
|
||||
1259437403, 1.1.sql
|
||||
135256939, 1.2__dropsFor_1.1.sql
|
||||
1091218936, 1.3.sql
|
||||
946163478, 1.4__dropsFor_1.3.sql
|
||||
-1450326352, 1.1.sql
|
||||
-1187336846, 1.2__dropsFor_1.1.sql
|
||||
469192394, 1.3.sql
|
||||
-1255430844, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ alter table migtest_e_basic drop constraint if exists ck_migtest_e_basic_status2
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest6;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
drop index if exists ix_migtest_e_basic_indextest1;
|
||||
drop index if exists ix_migtest_e_basic_indextest5;
|
||||
drop index if exists ix_migtest_quoted_status1;
|
||||
|
||||
@@ -7,9 +7,5 @@ alter table migtest_e_basic drop column eref_id;
|
||||
alter table migtest_e_history2 drop column obsolete_string1;
|
||||
alter table migtest_e_history2 drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists "migtest_QuOtEd";
|
||||
drop table if exists migtest_e_ref;
|
||||
|
||||
@@ -14,6 +14,9 @@ alter table migtest_e_basic drop constraint uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest5;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop constraint if exists fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -17,6 +17,10 @@ alter table migtest_e_history5 drop column test_boolean;
|
||||
alter table migtest_e_softdelete drop column deleted;
|
||||
alter table migtest_oto_child drop column master_id;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists migtest_e_user;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
drop table if exists migtest_mtm_m_migtest_mtm_c;
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
-528359263, 1.0__initial.sql
|
||||
-1374084944, 1.1.sql
|
||||
-875723380, 1.2__dropsFor_1.1.sql
|
||||
-819139044, 1.3.sql
|
||||
255653518, 1.4__dropsFor_1.3.sql
|
||||
253988246, 1.1.sql
|
||||
688811494, 1.2__dropsFor_1.1.sql
|
||||
674925120, 1.3.sql
|
||||
677297367, 1.4__dropsFor_1.3.sql
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ alter table migtest_e_basic drop constraint if exists ck_migtest_e_basic_status2
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest6;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
drop index if exists ix_migtest_e_basic_indextest1;
|
||||
drop index if exists ix_migtest_e_basic_indextest5;
|
||||
drop index if exists ix_migtest_quoted_status1;
|
||||
|
||||
@@ -14,13 +14,6 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
create view migtest_e_history2_with_history as select * from migtest_e_history2 union all select * from migtest_e_history2_history;
|
||||
create trigger migtest_e_history2_history_upd before update,delete on migtest_e_history2 for each row call "io.ebean.platform.h2.H2HistoryTrigger";
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists "migtest_QuOtEd";
|
||||
drop table if exists migtest_e_ref;
|
||||
drop sequence if exists migtest_e_ref_seq;
|
||||
|
||||
@@ -14,6 +14,9 @@ alter table migtest_e_basic drop constraint uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest5;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop constraint if exists fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -43,6 +43,13 @@ create view migtest_e_history5_with_history as select * from migtest_e_history5
|
||||
create trigger migtest_e_history5_history_upd before update,delete on migtest_e_history5 for each row call "io.ebean.platform.h2.H2HistoryTrigger";
|
||||
create view table_with_history as select * from "table" union all select * from table_history;
|
||||
create trigger table_history_upd before update,delete on "table" for each row call "io.ebean.platform.h2.H2HistoryTrigger";
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists migtest_e_user;
|
||||
drop sequence if exists migtest_e_user_seq;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
400361768, 1.0__initial.sql
|
||||
1531147865, 1.1.sql
|
||||
2123154375, 1.2__dropsFor_1.1.sql
|
||||
363782261, 1.3.sql
|
||||
-1120611041, 1.4__dropsFor_1.3.sql
|
||||
1979519453, 1.1.sql
|
||||
1579867974, 1.2__dropsFor_1.1.sql
|
||||
64466326, 1.3.sql
|
||||
255910011, 1.4__dropsFor_1.3.sql
|
||||
783227075, R__multi_comments.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -37,9 +37,6 @@ declare exit handler for sql_error_code 397 begin end;
|
||||
exec 'alter table migtest_e_enum drop constraint ck_migtest_e_enum_test_status';
|
||||
end;
|
||||
$$;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id;
|
||||
delimiter $$
|
||||
do
|
||||
begin
|
||||
|
||||
@@ -12,9 +12,5 @@ CALL usp_ebean_drop_column('migtest_e_history2_history', 'obsolete_string1');
|
||||
CALL usp_ebean_drop_column('migtest_e_history2_history', 'obsolete_string2');
|
||||
-- apply post alter
|
||||
alter table migtest_e_history2 add system versioning history table migtest_e_history2_history not validated;
|
||||
drop table drop_main cascade;
|
||||
drop table drop_main_drop_ref_many cascade;
|
||||
drop table drop_ref_many cascade;
|
||||
drop table drop_ref_one cascade;
|
||||
drop table "migtest_QuOtEd" cascade;
|
||||
drop table migtest_e_ref cascade;
|
||||
|
||||
@@ -62,6 +62,9 @@ declare exit handler for sql_error_code 397 begin end;
|
||||
exec 'alter table migtest_e_enum drop constraint ck_migtest_e_enum_test_status';
|
||||
end;
|
||||
$$;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop constraint fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -35,6 +35,10 @@ CALL usp_ebean_drop_column('table_history', 'textfield2');
|
||||
alter table migtest_e_history2 add system versioning history table migtest_e_history2_history not validated;
|
||||
alter table migtest_e_history5 add system versioning history table migtest_e_history5_history not validated;
|
||||
alter table "table" add system versioning history table table_history not validated;
|
||||
drop table drop_main cascade;
|
||||
drop table drop_main_drop_ref_many cascade;
|
||||
drop table drop_ref_many cascade;
|
||||
drop table drop_ref_one cascade;
|
||||
drop table migtest_e_user cascade;
|
||||
drop table migtest_mtm_c_migtest_mtm_m cascade;
|
||||
drop table migtest_mtm_m_migtest_mtm_c cascade;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
-745347271, I__create_procs.sql
|
||||
-1399184401, 1.0__initial.sql
|
||||
-1126493787, 1.1.sql
|
||||
-1209748806, 1.2__dropsFor_1.1.sql
|
||||
-657475021, 1.3.sql
|
||||
1185007986, 1.4__dropsFor_1.3.sql
|
||||
-1727762906, 1.1.sql
|
||||
1535221752, 1.2__dropsFor_1.1.sql
|
||||
1459381570, 1.3.sql
|
||||
1163601680, 1.4__dropsFor_1.3.sql
|
||||
1906063401, R__order_views_hana.sql
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ alter table migtest_e_basic drop constraint if exists ck_migtest_e_basic_status2
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest6;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
drop index if exists ix_migtest_e_basic_indextest1;
|
||||
drop index if exists ix_migtest_e_basic_indextest5;
|
||||
drop index if exists ix_migtest_quoted_status1;
|
||||
|
||||
@@ -7,13 +7,6 @@ alter table migtest_e_basic drop column eref_id;
|
||||
alter table migtest_e_history2 drop column obsolete_string1;
|
||||
alter table migtest_e_history2 drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists "migtest_QuOtEd";
|
||||
drop table if exists migtest_e_ref;
|
||||
drop sequence if exists migtest_e_ref_seq;
|
||||
|
||||
@@ -14,6 +14,9 @@ alter table migtest_e_basic drop constraint uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest5;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop constraint if exists fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -17,6 +17,13 @@ alter table migtest_e_history5 drop column test_boolean;
|
||||
alter table migtest_e_softdelete drop column deleted;
|
||||
alter table migtest_oto_child drop column master_id;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists migtest_e_user;
|
||||
drop sequence if exists migtest_e_user_seq;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
617421105, 1.0__initial.sql
|
||||
-271408671, 1.1.sql
|
||||
1366518530, 1.2__dropsFor_1.1.sql
|
||||
1536842100, 1.3.sql
|
||||
1661935263, 1.4__dropsFor_1.3.sql
|
||||
84224587, 1.1.sql
|
||||
-848622216, 1.2__dropsFor_1.1.sql
|
||||
-1921508585, 1.3.sql
|
||||
1870787524, 1.4__dropsFor_1.3.sql
|
||||
861001272, R__order_views_hsqldb.sql
|
||||
|
||||
|
||||
@@ -4,9 +4,6 @@ alter table migtest_fk_cascade drop foreign key fk_migtest_fk_cascade_one_id;
|
||||
alter table migtest_fk_set_null drop foreign key fk_migtest_fk_set_null_one_id;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest6;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop foreign key fk_drop_ref_one_parent_id;
|
||||
drop index ix_migtest_e_basic_indextest1 on migtest_e_basic;
|
||||
drop index ix_migtest_e_basic_indextest5 on migtest_e_basic;
|
||||
drop index ix_migtest_quoted_status1 on `migtest_QuOtEd`;
|
||||
|
||||
-7
@@ -9,13 +9,6 @@ alter table migtest_e_basic drop column eref_id;
|
||||
alter table migtest_e_history2 drop column obsolete_string1;
|
||||
alter table migtest_e_history2 drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists `migtest_QuOtEd`;
|
||||
drop table if exists migtest_e_ref;
|
||||
drop sequence if exists migtest_e_ref_seq;
|
||||
|
||||
@@ -11,6 +11,9 @@ alter table migtest_e_basic drop index uq_migtest_e_basic_status_indextest1;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest5;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop foreign key fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop foreign key fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop foreign key fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop foreign key fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
+7
@@ -20,6 +20,13 @@ alter table migtest_e_history5 drop column test_boolean;
|
||||
alter table migtest_e_softdelete drop column deleted;
|
||||
alter table migtest_oto_child drop column master_id;
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists migtest_e_user;
|
||||
drop sequence if exists migtest_e_user_seq;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
+4
-4
@@ -1,7 +1,7 @@
|
||||
-1588268581, 1.0__initial.sql
|
||||
993683171, 1.1.sql
|
||||
-799907262, 1.2__dropsFor_1.1.sql
|
||||
-797191406, 1.3.sql
|
||||
1686135364, 1.4__dropsFor_1.3.sql
|
||||
-1101751768, 1.1.sql
|
||||
919151678, 1.2__dropsFor_1.1.sql
|
||||
-413458006, 1.3.sql
|
||||
-1557805741, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -4,9 +4,6 @@ alter table migtest_fk_cascade drop foreign key fk_migtest_fk_cascade_one_id;
|
||||
alter table migtest_fk_set_null drop foreign key fk_migtest_fk_set_null_one_id;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest6;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop foreign key fk_drop_ref_one_parent_id;
|
||||
drop index ix_migtest_e_basic_indextest1 on migtest_e_basic;
|
||||
drop index ix_migtest_e_basic_indextest5 on migtest_e_basic;
|
||||
drop index ix_migtest_quoted_status1 on `migtest_QuOtEd`;
|
||||
|
||||
@@ -9,13 +9,6 @@ CALL usp_ebean_drop_column('migtest_e_basic', 'eref_id');
|
||||
CALL usp_ebean_drop_column('migtest_e_history2', 'obsolete_string1');
|
||||
CALL usp_ebean_drop_column('migtest_e_history2', 'obsolete_string2');
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists `migtest_QuOtEd`;
|
||||
drop table if exists migtest_e_ref;
|
||||
drop sequence if exists migtest_e_ref_seq;
|
||||
|
||||
@@ -11,6 +11,9 @@ alter table migtest_e_basic drop index uq_migtest_e_basic_status_indextest1;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest5;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop foreign key fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop foreign key fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop foreign key fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop foreign key fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -20,6 +20,13 @@ CALL usp_ebean_drop_column('migtest_e_history5', 'test_boolean');
|
||||
CALL usp_ebean_drop_column('migtest_e_softdelete', 'deleted');
|
||||
CALL usp_ebean_drop_column('migtest_oto_child', 'master_id');
|
||||
-- apply post alter
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists migtest_e_user;
|
||||
drop sequence if exists migtest_e_user_seq;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
-1933396282, I__create_procs.sql
|
||||
-1588268581, 1.0__initial.sql
|
||||
993683171, 1.1.sql
|
||||
1653772183, 1.2__dropsFor_1.1.sql
|
||||
-797191406, 1.3.sql
|
||||
772508824, 1.4__dropsFor_1.3.sql
|
||||
-1101751768, 1.1.sql
|
||||
1187950993, 1.2__dropsFor_1.1.sql
|
||||
-413458006, 1.3.sql
|
||||
-430651388, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -103,9 +103,6 @@
|
||||
<addColumn tableName="migtest_oto_child">
|
||||
<column name="master_id" type="bigint" uniqueOneToOne="uq_migtest_oto_child_master_id" references="migtest_oto_master.id" foreignKeyName="fk_migtest_oto_child_master_id"/>
|
||||
</addColumn>
|
||||
<alterForeignKey name="fk_drop_main_drop_ref_many_drop_main" columnNames="DROP FOREIGN KEY" indexName="ix_drop_main_drop_ref_many_drop_main" tableName="drop_main_drop_ref_many"/>
|
||||
<alterForeignKey name="fk_drop_main_drop_ref_many_drop_ref_many" columnNames="DROP FOREIGN KEY" indexName="ix_drop_main_drop_ref_many_drop_ref_many" tableName="drop_main_drop_ref_many"/>
|
||||
<alterForeignKey name="fk_drop_ref_one_parent_id" columnNames="DROP FOREIGN KEY" indexName="ix_drop_ref_one_parent_id" tableName="drop_ref_one"/>
|
||||
<createIndex indexName="ix_migtest_e_basic_indextest3" tableName="migtest_e_basic" columns="indextest3"/>
|
||||
<createIndex indexName="ix_migtest_e_basic_indextest6" tableName="migtest_e_basic" columns="indextest6"/>
|
||||
<createIndex indexName="ix_table_textfield2" tableName=""table"" columns="textfield2"/>
|
||||
@@ -124,10 +121,6 @@
|
||||
<dropColumn columnName="eref_id" tableName="migtest_e_basic"/>
|
||||
<dropColumn columnName="obsolete_string1" tableName="migtest_e_history2" withHistory="true"/>
|
||||
<dropColumn columnName="obsolete_string2" tableName="migtest_e_history2" withHistory="true"/>
|
||||
<dropTable name="drop_main" sequenceCol="id"/>
|
||||
<dropTable name="drop_main_drop_ref_many"/>
|
||||
<dropTable name="drop_ref_many" sequenceCol="id"/>
|
||||
<dropTable name="drop_ref_one" sequenceCol="id"/>
|
||||
<dropTable name=""migtest_QuOtEd""/>
|
||||
<dropTable name="migtest_e_ref" sequenceCol="id"/>
|
||||
</changeSet>
|
||||
|
||||
-4
@@ -7,10 +7,6 @@
|
||||
<dropColumn columnName="eref_id" tableName="migtest_e_basic"/>
|
||||
<dropColumn columnName="obsolete_string1" tableName="migtest_e_history2" withHistory="true"/>
|
||||
<dropColumn columnName="obsolete_string2" tableName="migtest_e_history2" withHistory="true"/>
|
||||
<dropTable name="drop_main" sequenceCol="id"/>
|
||||
<dropTable name="drop_main_drop_ref_many"/>
|
||||
<dropTable name="drop_ref_many" sequenceCol="id"/>
|
||||
<dropTable name="drop_ref_one" sequenceCol="id"/>
|
||||
<dropTable name=""migtest_QuOtEd""/>
|
||||
<dropTable name="migtest_e_ref" sequenceCol="id"/>
|
||||
</changeSet>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
<addUniqueConstraint constraintName="uq_migtest_e_basic_indextest5" tableName="migtest_e_basic" columnNames="DROP CONSTRAINT" nullableColumns="indextest5"/>
|
||||
<addUniqueConstraint constraintName="uq_migtest_e_basic_indextest2" tableName="migtest_e_basic" columnNames="indextest2" oneToOne="false" nullableColumns="indextest2"/>
|
||||
<addUniqueConstraint constraintName="uq_migtest_e_basic_indextest6" tableName="migtest_e_basic" columnNames="indextest6" oneToOne="false" nullableColumns="indextest6"/>
|
||||
<alterTable name="migtest_e_basic" tablespace="db2;TSTABLES;" indexTablespace="db2;INDEXTS;" lobTablespace="db2;TSTABLES;"/>
|
||||
<alterColumn columnName="test_status" tableName="migtest_e_enum" checkConstraint="check ( test_status in ('N','A','I'))" checkConstraintName="ck_migtest_e_enum_test_status"/>
|
||||
<alterColumn columnName="test_string" tableName="migtest_e_history" withHistory="true" comment="DROP COMMENT"/>
|
||||
<addTableComment name="migtest_e_history" comment="DROP COMMENT"/>
|
||||
@@ -51,6 +52,9 @@
|
||||
<alterTable name="migtest_mtm_m" tablespace="$TABLESPACE_DEFAULT" indexTablespace="$TABLESPACE_DEFAULT" lobTablespace="$TABLESPACE_DEFAULT"/>
|
||||
<addUniqueConstraint constraintName="uq_m12_otoc72" tableName="migtest_oto_child" columnNames="name" oneToOne="false" nullableColumns="name" platforms="MYSQL"/>
|
||||
<addUniqueConstraint constraintName="uq_migtest_oto_master_name" tableName="migtest_oto_master" columnNames="name" oneToOne="false" nullableColumns="name" platforms="MYSQL"/>
|
||||
<alterForeignKey name="fk_drop_main_drop_ref_many_drop_main" columnNames="DROP FOREIGN KEY" indexName="ix_drop_main_drop_ref_many_drop_main" tableName="drop_main_drop_ref_many"/>
|
||||
<alterForeignKey name="fk_drop_main_drop_ref_many_drop_ref_many" columnNames="DROP FOREIGN KEY" indexName="ix_drop_main_drop_ref_many_drop_ref_many" tableName="drop_main_drop_ref_many"/>
|
||||
<alterForeignKey name="fk_drop_ref_one_parent_id" columnNames="DROP FOREIGN KEY" indexName="ix_drop_ref_one_parent_id" tableName="drop_ref_one"/>
|
||||
<alterForeignKey name="fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c" columnNames="DROP FOREIGN KEY" indexName="ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c" tableName="migtest_mtm_c_migtest_mtm_m"/>
|
||||
<alterForeignKey name="fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m" columnNames="DROP FOREIGN KEY" indexName="ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m" tableName="migtest_mtm_c_migtest_mtm_m"/>
|
||||
<alterForeignKey name="fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m" columnNames="DROP FOREIGN KEY" indexName="ix_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m" tableName="migtest_mtm_m_migtest_mtm_c"/>
|
||||
@@ -86,6 +90,10 @@
|
||||
<dropColumn columnName="textfield" tableName=""table"" withHistory="true"/>
|
||||
<dropColumn columnName="textfield2" tableName=""table"" withHistory="true"/>
|
||||
<dropColumn columnName="master_id" tableName="migtest_oto_child"/>
|
||||
<dropTable name="drop_main" sequenceCol="id"/>
|
||||
<dropTable name="drop_main_drop_ref_many"/>
|
||||
<dropTable name="drop_ref_many" sequenceCol="id"/>
|
||||
<dropTable name="drop_ref_one" sequenceCol="id"/>
|
||||
<dropTable name="migtest_e_user" sequenceCol="id"/>
|
||||
<dropTable name="migtest_mtm_c_migtest_mtm_m"/>
|
||||
<dropTable name="migtest_mtm_m_migtest_mtm_c"/>
|
||||
|
||||
+4
@@ -18,6 +18,10 @@
|
||||
<dropColumn columnName="textfield" tableName=""table"" withHistory="true"/>
|
||||
<dropColumn columnName="textfield2" tableName=""table"" withHistory="true"/>
|
||||
<dropColumn columnName="master_id" tableName="migtest_oto_child"/>
|
||||
<dropTable name="drop_main" sequenceCol="id"/>
|
||||
<dropTable name="drop_main_drop_ref_many"/>
|
||||
<dropTable name="drop_ref_many" sequenceCol="id"/>
|
||||
<dropTable name="drop_ref_one" sequenceCol="id"/>
|
||||
<dropTable name="migtest_e_user" sequenceCol="id"/>
|
||||
<dropTable name="migtest_mtm_c_migtest_mtm_m"/>
|
||||
<dropTable name="migtest_mtm_m_migtest_mtm_c"/>
|
||||
|
||||
@@ -4,9 +4,6 @@ alter table migtest_fk_cascade drop foreign key fk_migtest_fk_cascade_one_id;
|
||||
alter table migtest_fk_set_null drop foreign key fk_migtest_fk_set_null_one_id;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest6;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop foreign key fk_drop_ref_one_parent_id;
|
||||
drop index ix_migtest_e_basic_indextest1 on migtest_e_basic;
|
||||
drop index ix_migtest_e_basic_indextest5 on migtest_e_basic;
|
||||
drop index ix_migtest_quoted_status1 on `migtest_QuOtEd`;
|
||||
|
||||
@@ -25,9 +25,5 @@ create trigger migtest_e_history2_history_del before delete on migtest_e_history
|
||||
insert into migtest_e_history2_history (sys_period_start,sys_period_end,id, test_string, test_string3, new_column) values (OLD.sys_period_start, now(6),OLD.id, OLD.test_string, OLD.test_string3, OLD.new_column);
|
||||
end$$
|
||||
unlock tables;
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists `migtest_QuOtEd`;
|
||||
drop table if exists migtest_e_ref;
|
||||
|
||||
@@ -11,6 +11,9 @@ alter table migtest_e_basic drop index uq_migtest_e_basic_status_indextest1;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest5;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop foreign key fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop foreign key fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop foreign key fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop foreign key fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -77,6 +77,10 @@ create trigger table_history_del before delete on `table` for each row begin
|
||||
insert into table_history (sys_period_start,sys_period_end,`index`, `from`, `to`, `varchar`, `select`, `foreign`) values (OLD.sys_period_start, now(6),OLD.`index`, OLD.`from`, OLD.`to`, OLD.`varchar`, OLD.`select`, OLD.`foreign`);
|
||||
end$$
|
||||
unlock tables;
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists migtest_e_user;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
drop table if exists migtest_mtm_m_migtest_mtm_c;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
-1933396282, I__create_procs.sql
|
||||
-1156696445, 1.0__initial.sql
|
||||
-1306874760, 1.1.sql
|
||||
-70834029, 1.2__dropsFor_1.1.sql
|
||||
514784474, 1.3.sql
|
||||
-1282113429, 1.4__dropsFor_1.3.sql
|
||||
-92753611, 1.1.sql
|
||||
-1097227916, 1.2__dropsFor_1.1.sql
|
||||
141196883, 1.3.sql
|
||||
1435550240, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -4,9 +4,6 @@ alter table migtest_fk_cascade drop foreign key fk_migtest_fk_cascade_one_id;
|
||||
alter table migtest_fk_set_null drop foreign key fk_migtest_fk_set_null_one_id;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest6;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop foreign key fk_drop_ref_one_parent_id;
|
||||
drop index ix_migtest_e_basic_indextest1 on migtest_e_basic;
|
||||
drop index ix_migtest_e_basic_indextest5 on migtest_e_basic;
|
||||
drop index ix_migtest_quoted_status1 on `migtest_QuOtEd`;
|
||||
|
||||
@@ -25,9 +25,5 @@ create trigger migtest_e_history2_history_del before delete on migtest_e_history
|
||||
insert into migtest_e_history2_history (sys_period_start,sys_period_end,id, test_string, test_string3, new_column) values (OLD.sys_period_start, now(6),OLD.id, OLD.test_string, OLD.test_string3, OLD.new_column);
|
||||
end$$
|
||||
unlock tables;
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists `migtest_QuOtEd`;
|
||||
drop table if exists migtest_e_ref;
|
||||
|
||||
@@ -11,6 +11,9 @@ alter table migtest_e_basic drop index uq_migtest_e_basic_status_indextest1;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop index uq_migtest_e_basic_indextest5;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop foreign key fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop foreign key fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop foreign key fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop foreign key fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop foreign key fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -77,6 +77,10 @@ create trigger table_history_del before delete on `table` for each row begin
|
||||
insert into table_history (sys_period_start,sys_period_end,`index`, `from`, `to`, `varchar`, `select`, `foreign`) values (OLD.sys_period_start, now(6),OLD.`index`, OLD.`from`, OLD.`to`, OLD.`varchar`, OLD.`select`, OLD.`foreign`);
|
||||
end$$
|
||||
unlock tables;
|
||||
drop table if exists drop_main;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop table if exists drop_ref_one;
|
||||
drop table if exists migtest_e_user;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
drop table if exists migtest_mtm_m_migtest_mtm_c;
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
-1933396282, I__create_procs.sql
|
||||
-165038024, 1.0__initial.sql
|
||||
-1306874760, 1.1.sql
|
||||
-70834029, 1.2__dropsFor_1.1.sql
|
||||
514784474, 1.3.sql
|
||||
-1282113429, 1.4__dropsFor_1.3.sql
|
||||
-92753611, 1.1.sql
|
||||
-1097227916, 1.2__dropsFor_1.1.sql
|
||||
141196883, 1.3.sql
|
||||
1435550240, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ alter table migtest_e_basic drop constraint ck_migtest_e_basic_status2;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest6;
|
||||
alter table migtest_e_enum drop constraint ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id;
|
||||
drop index if exists ix_migtest_e_basic_indextest1;
|
||||
drop index if exists ix_migtest_e_basic_indextest5;
|
||||
drop index if exists ix_migtest_quoted_status1;
|
||||
|
||||
@@ -27,13 +27,6 @@ create or replace trigger migtest_e_history2_history_del for migtest_e_history2
|
||||
end_trigger;
|
||||
$$
|
||||
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists "migtest_QuOtEd";
|
||||
drop table if exists migtest_e_ref;
|
||||
drop sequence if exists migtest_e_ref_seq;
|
||||
|
||||
@@ -14,6 +14,9 @@ alter table migtest_e_basic drop constraint uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest5;
|
||||
alter table migtest_e_enum drop constraint ck_migtest_e_enum_test_status;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop constraint fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -83,6 +83,13 @@ create or replace trigger table_history_del for "table" before delete for each r
|
||||
end_trigger;
|
||||
$$
|
||||
|
||||
drop table if exists drop_main;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many;
|
||||
drop table if exists drop_ref_many;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists migtest_e_user;
|
||||
drop sequence if exists migtest_e_user_seq;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-588780599, 1.0__initial.sql
|
||||
1864060880, 1.1.sql
|
||||
-1061962041, 1.2__dropsFor_1.1.sql
|
||||
-1346387712, 1.3.sql
|
||||
-1118858496, 1.4__dropsFor_1.3.sql
|
||||
-2079708895, 1.1.sql
|
||||
1530685455, 1.2__dropsFor_1.1.sql
|
||||
-956168377, 1.3.sql
|
||||
146295108, 1.4__dropsFor_1.3.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -52,9 +52,6 @@ exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drp_mn_drp_rf_mny_drp_mn;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drp_mn_drp_rf_mny_dr_joeslj;
|
||||
alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id;
|
||||
drop index ix_migtest_e_basic_indextest1;
|
||||
drop index ix_migtest_e_basic_indextest5;
|
||||
drop index ix_migtest_quoted_status1;
|
||||
|
||||
@@ -7,40 +7,6 @@ alter table migtest_e_basic drop column eref_id;
|
||||
alter table migtest_e_history2 drop column obsolete_string1;
|
||||
alter table migtest_e_history2 drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
drop table drop_main cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_main_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table drop_main_drop_ref_many cascade constraints purge;
|
||||
drop table drop_ref_many cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_ref_many_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table drop_ref_one cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_ref_one_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table "migtest_QuOtEd" cascade constraints purge;
|
||||
drop table migtest_e_ref cascade constraints purge;
|
||||
delimiter $$
|
||||
|
||||
@@ -86,6 +86,9 @@ exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drp_mn_drp_rf_mny_drp_mn;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drp_mn_drp_rf_mny_dr_joeslj;
|
||||
alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_mgtst_mtm_c_mgtst_mt_93awga;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_mgtst_mtm_c_mgtst_mt_93awgk;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop constraint fk_mgtst_mtm_m_mgtst_mt_ggi34k;
|
||||
|
||||
@@ -17,6 +17,40 @@ alter table migtest_e_history5 drop column test_boolean;
|
||||
alter table migtest_e_softdelete drop column deleted;
|
||||
alter table migtest_oto_child drop column master_id;
|
||||
-- apply post alter
|
||||
drop table drop_main cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_main_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table drop_main_drop_ref_many cascade constraints purge;
|
||||
drop table drop_ref_many cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_ref_many_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table drop_ref_one cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_ref_one_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table migtest_e_user cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
-126940583, 1.0__initial.sql
|
||||
1459805204, 1.1.sql
|
||||
1164021503, 1.2__dropsFor_1.1.sql
|
||||
1644022208, 1.3.sql
|
||||
2037899598, 1.4__dropsFor_1.3.sql
|
||||
740264587, 1.1.sql
|
||||
930172034, 1.2__dropsFor_1.1.sql
|
||||
-647790612, 1.3.sql
|
||||
1707389466, 1.4__dropsFor_1.3.sql
|
||||
1357801733, R__oracle_only_views.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -52,9 +52,6 @@ exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drp_mn_drp_rf_mny_drp_mn;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drp_mn_drp_rf_mny_dr_joeslj;
|
||||
alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id;
|
||||
drop index ix_migtest_e_basic_indextest1;
|
||||
drop index ix_migtest_e_basic_indextest5;
|
||||
drop index ix_migtest_quoted_status1;
|
||||
|
||||
-34
@@ -7,40 +7,6 @@ alter table migtest_e_basic drop column eref_id;
|
||||
alter table migtest_e_history2 drop column obsolete_string1;
|
||||
alter table migtest_e_history2 drop column obsolete_string2;
|
||||
-- apply post alter
|
||||
drop table drop_main cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_main_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table drop_main_drop_ref_many cascade constraints purge;
|
||||
drop table drop_ref_many cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_ref_many_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table drop_ref_one cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_ref_one_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table "migtest_QuOtEd" cascade constraints purge;
|
||||
drop table migtest_e_ref cascade constraints purge;
|
||||
delimiter $$
|
||||
|
||||
@@ -86,6 +86,9 @@ exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drp_mn_drp_rf_mny_drp_mn;
|
||||
alter table drop_main_drop_ref_many drop constraint fk_drp_mn_drp_rf_mny_dr_joeslj;
|
||||
alter table drop_ref_one drop constraint fk_drop_ref_one_parent_id;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_mgtst_mtm_c_mgtst_mt_93awga;
|
||||
alter table migtest_mtm_c_migtest_mtm_m drop constraint fk_mgtst_mtm_c_mgtst_mt_93awgk;
|
||||
alter table migtest_mtm_m_migtest_mtm_c drop constraint fk_mgtst_mtm_m_mgtst_mt_ggi34k;
|
||||
|
||||
+34
@@ -17,6 +17,40 @@ alter table migtest_e_history5 drop column test_boolean;
|
||||
alter table migtest_e_softdelete drop column deleted;
|
||||
alter table migtest_oto_child drop column master_id;
|
||||
-- apply post alter
|
||||
drop table drop_main cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_main_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table drop_main_drop_ref_many cascade constraints purge;
|
||||
drop table drop_ref_many cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_ref_many_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table drop_ref_one cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
expected_error exception;
|
||||
pragma exception_init(expected_error, -2289);
|
||||
begin
|
||||
execute immediate 'drop sequence drop_ref_one_seq';
|
||||
exception
|
||||
when expected_error then null;
|
||||
end;
|
||||
$$;
|
||||
drop table migtest_e_user cascade constraints purge;
|
||||
delimiter $$
|
||||
declare
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
21261569, 1.0__initial.sql
|
||||
-1938703172, 1.1.sql
|
||||
1164021503, 1.2__dropsFor_1.1.sql
|
||||
1673954355, 1.3.sql
|
||||
2037899598, 1.4__dropsFor_1.3.sql
|
||||
-123689547, 1.1.sql
|
||||
930172034, 1.2__dropsFor_1.1.sql
|
||||
1369863782, 1.3.sql
|
||||
1707389466, 1.4__dropsFor_1.3.sql
|
||||
1357801733, R__oracle_only_views.sql
|
||||
561281075, R__order_views.sql
|
||||
|
||||
|
||||
@@ -7,9 +7,6 @@ alter table migtest_e_basic drop constraint if exists ck_migtest_e_basic_status2
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest2;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest6;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table if exists drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table if exists drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table if exists drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
drop index if exists ix_migtest_e_basic_indextest1;
|
||||
drop index if exists ix_migtest_e_basic_indextest5;
|
||||
drop index if exists ix_migtest_quoted_status1;
|
||||
|
||||
@@ -37,13 +37,6 @@ create trigger migtest_e_history2_history_upd
|
||||
before update or delete on migtest_e_history2
|
||||
for each row execute procedure migtest_e_history2_history_version();
|
||||
|
||||
drop table if exists drop_main cascade;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many cascade;
|
||||
drop table if exists drop_ref_many cascade;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one cascade;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists "migtest_QuOtEd" cascade;
|
||||
drop table if exists migtest_e_ref cascade;
|
||||
drop sequence if exists migtest_e_ref_seq;
|
||||
|
||||
@@ -14,6 +14,9 @@ alter table migtest_e_basic drop constraint uq_migtest_e_basic_name;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest4;
|
||||
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest5;
|
||||
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||
alter table if exists drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_main;
|
||||
alter table if exists drop_main_drop_ref_many drop constraint if exists fk_drop_main_drop_ref_many_drop_ref_many;
|
||||
alter table if exists drop_ref_one drop constraint if exists fk_drop_ref_one_parent_id;
|
||||
alter table if exists migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c;
|
||||
alter table if exists migtest_mtm_c_migtest_mtm_m drop constraint if exists fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m;
|
||||
alter table if exists migtest_mtm_m_migtest_mtm_c drop constraint if exists fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m;
|
||||
|
||||
@@ -113,6 +113,13 @@ create trigger table_history_upd
|
||||
before update or delete on "table"
|
||||
for each row execute procedure table_history_version();
|
||||
|
||||
drop table if exists drop_main cascade;
|
||||
drop sequence if exists drop_main_seq;
|
||||
drop table if exists drop_main_drop_ref_many cascade;
|
||||
drop table if exists drop_ref_many cascade;
|
||||
drop sequence if exists drop_ref_many_seq;
|
||||
drop table if exists drop_ref_one cascade;
|
||||
drop sequence if exists drop_ref_one_seq;
|
||||
drop table if exists migtest_e_user cascade;
|
||||
drop sequence if exists migtest_e_user_seq;
|
||||
drop table if exists migtest_mtm_c_migtest_mtm_m cascade;
|
||||
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
-22203872, 1.0__initial.sql
|
||||
-1122505568, 1.1.sql
|
||||
274267648, 1.2__dropsFor_1.1.sql
|
||||
-1740230219, 1.3.sql
|
||||
-709144111, 1.4__dropsFor_1.3.sql
|
||||
-1432572923, 1.1.sql
|
||||
-261111052, 1.2__dropsFor_1.1.sql
|
||||
788727457, 1.3.sql
|
||||
-596521697, 1.4__dropsFor_1.3.sql
|
||||
783227075, R__multi_comments.sql
|
||||
561281075, R__order_views.sql
|
||||
283077354, R__pg_indexes.sql
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user