mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
Added testcase with upper and lower case characters
This commit is contained in:
1 parent
00686fcccf
commit
f1950d479e
126 files changed
+820
-126
No files matched your search
@@ -14,8 +14,10 @@ import org.junit.jupiter.api.Test;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -60,35 +62,38 @@ public class DbMigrationTest extends BaseTestCase {
|
|||||||
((ConnectionPool)server().dataSource()).offline();
|
((ConnectionPool)server().dataSource()).offline();
|
||||||
((ConnectionPool)server().dataSource()).online();
|
((ConnectionPool)server().dataSource()).online();
|
||||||
cleanup("migtest_ckey_assoc",
|
cleanup("migtest_ckey_assoc",
|
||||||
"migtest_ckey_detail",
|
"migtest_ckey_detail",
|
||||||
"migtest_ckey_parent",
|
"migtest_ckey_parent",
|
||||||
"migtest_e_basic",
|
"migtest_e_basic",
|
||||||
"migtest_e_enum",
|
"migtest_e_enum",
|
||||||
"migtest_e_history",
|
"migtest_e_history",
|
||||||
"migtest_e_history2",
|
"migtest_e_history2",
|
||||||
"migtest_e_history3",
|
"migtest_e_history3",
|
||||||
"migtest_e_history4",
|
"migtest_e_history4",
|
||||||
"migtest_e_history5",
|
"migtest_e_history5",
|
||||||
"migtest_e_history6",
|
"migtest_e_history6",
|
||||||
"migtest_e_ref",
|
"migtest_e_ref",
|
||||||
"migtest_e_softdelete",
|
"migtest_e_softdelete",
|
||||||
"migtest_e_user",
|
"migtest_e_user",
|
||||||
"migtest_fk_cascade",
|
"migtest_fk_cascade",
|
||||||
"migtest_fk_cascade_one",
|
"migtest_fk_cascade_one",
|
||||||
"migtest_fk_none",
|
"migtest_fk_none",
|
||||||
"migtest_fk_none_via_join",
|
"migtest_fk_none_via_join",
|
||||||
"migtest_fk_one",
|
"migtest_fk_one",
|
||||||
"migtest_fk_set_null",
|
"migtest_fk_set_null",
|
||||||
"migtest_mtm_c",
|
"migtest_mtm_c",
|
||||||
"migtest_mtm_m",
|
"migtest_mtm_m",
|
||||||
"migtest_mtm_m_phone_numbers",
|
"migtest_mtm_m_phone_numbers",
|
||||||
"migtest_mtm_c_migtest_mtm_m",
|
"migtest_mtm_c_migtest_mtm_m",
|
||||||
"migtest_mtm_m_migtest_mtm_c",
|
"migtest_mtm_m_migtest_mtm_c",
|
||||||
"migtest_oto_child",
|
"migtest_oto_child",
|
||||||
"migtest_oto_master",
|
"migtest_oto_master",
|
||||||
"table",
|
"`migtest_QuOtEd`",
|
||||||
"\"table\"",
|
"migtest_QuOtEd",
|
||||||
"`table`");
|
"\"migtest_QuOtEd\"",
|
||||||
|
"table",
|
||||||
|
"\"table\"",
|
||||||
|
"`table`");
|
||||||
((ConnectionPool)server().dataSource()).offline();
|
((ConnectionPool)server().dataSource()).offline();
|
||||||
((ConnectionPool)server().dataSource()).online();
|
((ConnectionPool)server().dataSource()).online();
|
||||||
|
|
||||||
@@ -96,8 +101,17 @@ public class DbMigrationTest extends BaseTestCase {
|
|||||||
runScript("I__create_procs.sql");
|
runScript("I__create_procs.sql");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isOracle()) {
|
||||||
|
// oracle.getMetaData is too slow. So skip this test
|
||||||
|
assertThat(getTables()).doesNotContain("migtest_QuOtEd");
|
||||||
|
}
|
||||||
runScript("1.0__initial.sql");
|
runScript("1.0__initial.sql");
|
||||||
|
if (!isOracle()) {
|
||||||
|
assertThat(getTables()) // we expect exact spelling here
|
||||||
|
.contains("migtest_QuOtEd")
|
||||||
|
.doesNotContain("migtest_quoted")
|
||||||
|
.doesNotContain("MIGTEST_QUOTED");
|
||||||
|
}
|
||||||
if (isClickHouse()) {
|
if (isClickHouse()) {
|
||||||
// ClickHouse does not support transactions, so we cannot do update statements
|
// ClickHouse does not support transactions, so we cannot do update statements
|
||||||
// Add column is also not implemented. So exit here
|
// Add column is also not implemented. So exit here
|
||||||
@@ -160,7 +174,10 @@ public class DbMigrationTest extends BaseTestCase {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
runScript("1.2__dropsFor_1.1.sql");
|
runScript("1.2__dropsFor_1.1.sql");
|
||||||
|
if (!isOracle()) {
|
||||||
|
// too slow!
|
||||||
|
assertThat(getTables()).doesNotContain("migtest_QuOtEd");
|
||||||
|
}
|
||||||
// Oracle caches the statement and does not detect schema change. It fails with
|
// Oracle caches the statement and does not detect schema change. It fails with
|
||||||
// an ORA-01007
|
// an ORA-01007
|
||||||
result = server().sqlQuery("select * from migtest_e_basic order by id,status").findList();
|
result = server().sqlQuery("select * from migtest_e_basic order by id,status").findList();
|
||||||
@@ -345,4 +362,15 @@ public class DbMigrationTest extends BaseTestCase {
|
|||||||
server().script().runScript("cleanup", sb.toString(), true);
|
server().script().runScript("cleanup", sb.toString(), true);
|
||||||
server().script().runScript("cleanup", sb.toString(), true);
|
server().script().runScript("cleanup", sb.toString(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private List<String> getTables() throws SQLException {
|
||||||
|
List<String> ret = new ArrayList<>();
|
||||||
|
try (Transaction txn = server().beginTransaction()) {
|
||||||
|
ResultSet rs = txn.connection().getMetaData().getTables(null, null, null, null);
|
||||||
|
while (rs.next()) {
|
||||||
|
ret.add(rs.getString(3));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
package misc.migration.v1_0;
|
||||||
|
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
import io.ebean.annotation.EnumValue;
|
||||||
|
import io.ebean.annotation.Index;
|
||||||
|
|
||||||
|
// table with upper and lower case letters
|
||||||
|
@Table(name = "`migtest_QuOtEd`")
|
||||||
|
@Entity
|
||||||
|
public class EQuoted {
|
||||||
|
|
||||||
|
public enum Status {
|
||||||
|
@EnumValue("N")
|
||||||
|
NEW,
|
||||||
|
|
||||||
|
@EnumValue("A")
|
||||||
|
ACTIVE,
|
||||||
|
|
||||||
|
@EnumValue("I")
|
||||||
|
INACTIVE,
|
||||||
|
}
|
||||||
|
|
||||||
|
@Id
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@Index
|
||||||
|
private Status status1;
|
||||||
|
|
||||||
|
@Index(unique = true)
|
||||||
|
private Status status2;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
package misc.migration.v1_2;
|
||||||
|
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
|
||||||
|
import io.ebean.annotation.EnumValue;
|
||||||
|
import io.ebean.annotation.Index;
|
||||||
|
|
||||||
|
//table with upper and lower case letters
|
||||||
|
@Table(name = "`migtest_QuOtEd`")
|
||||||
|
@Entity
|
||||||
|
public class EQuoted {
|
||||||
|
|
||||||
|
public enum Status {
|
||||||
|
@EnumValue("N")
|
||||||
|
NEW,
|
||||||
|
|
||||||
|
@EnumValue("A")
|
||||||
|
ACTIVE,
|
||||||
|
|
||||||
|
@EnumValue("I")
|
||||||
|
INACTIVE,
|
||||||
|
}
|
||||||
|
|
||||||
|
@Id
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
@Index
|
||||||
|
private Status status1;
|
||||||
|
|
||||||
|
@Index(unique = true)
|
||||||
|
private Status status2;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -105,6 +105,12 @@ create table migtest_e_history6 (
|
|||||||
test_number2 UInt32
|
test_number2 UInt32
|
||||||
) ENGINE = Log();
|
) ENGINE = Log();
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id String,
|
||||||
|
status1 String,
|
||||||
|
status2 String
|
||||||
|
) ENGINE = Log();
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id UInt32,
|
id UInt32,
|
||||||
name String
|
name String
|
||||||
|
|||||||
+1
@@ -7,4 +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_string1;
|
||||||
alter table migtest_e_history2 drop column obsolete_string2;
|
alter table migtest_e_history2 drop column obsolete_string2;
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
drop table if exists "migtest_QuOtEd";
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
@@ -9,6 +9,12 @@ 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_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 migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id String,
|
||||||
|
status1 String,
|
||||||
|
status2 String
|
||||||
|
) ENGINE = Log();
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id UInt32,
|
id UInt32,
|
||||||
name String
|
name String
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
863321871, 1.0__initial.sql
|
235371332, 1.0__initial.sql
|
||||||
1903846331, 1.1.sql
|
1903846331, 1.1.sql
|
||||||
1279151426, 1.2__dropsFor_1.1.sql
|
688811494, 1.2__dropsFor_1.1.sql
|
||||||
1630693278, 1.3.sql
|
1015552567, 1.3.sql
|
||||||
80209848, 1.4__dropsFor_1.3.sql
|
80209848, 1.4__dropsFor_1.3.sql
|
||||||
|
|
||||||
@@ -127,6 +127,16 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -190,4 +200,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -9,6 +9,7 @@ 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 migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||||
drop index if exists ix_migtest_e_basic_indextest1;
|
drop index if exists ix_migtest_e_basic_indextest1;
|
||||||
drop index if exists ix_migtest_e_basic_indextest5;
|
drop index if exists ix_migtest_e_basic_indextest5;
|
||||||
|
drop index if exists ix_migtest_quoted_status1;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
+1
@@ -7,5 +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_string1;
|
||||||
alter table migtest_e_history2 drop column obsolete_string2;
|
alter table migtest_e_history2 drop column obsolete_string2;
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
drop table if exists "migtest_QuOtEd" cascade;
|
||||||
drop table if exists migtest_e_ref cascade;
|
drop table if exists migtest_e_ref cascade;
|
||||||
drop sequence if exists migtest_e_ref_seq;
|
drop sequence if exists migtest_e_ref_seq;
|
||||||
@@ -17,6 +17,16 @@ alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_stat
|
|||||||
drop index if exists ix_migtest_e_basic_indextest3;
|
drop index if exists ix_migtest_e_basic_indextest3;
|
||||||
drop index if exists ix_migtest_e_basic_indextest6;
|
drop index if exists ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -71,3 +81,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
1636200128, 1.0__initial.sql
|
-703764770, 1.0__initial.sql
|
||||||
356413151, 1.1.sql
|
751308758, 1.1.sql
|
||||||
240919209, 1.2__dropsFor_1.1.sql
|
856096334, 1.2__dropsFor_1.1.sql
|
||||||
-430000356, 1.3.sql
|
17665322, 1.3.sql
|
||||||
-820814009, 1.4__dropsFor_1.3.sql
|
-820814009, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -125,6 +125,15 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -209,6 +218,7 @@ create table migtest_e_history5_history as (select * from migtest_e_history5) wi
|
|||||||
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
||||||
create table migtest_e_history6_history as (select * from migtest_e_history6) with no data;
|
create table migtest_e_history6_history as (select * from migtest_e_history6) with no data;
|
||||||
alter table migtest_e_history6 add versioning use history table migtest_e_history6_history;
|
alter table migtest_e_history6 add versioning use history table migtest_e_history6_history;
|
||||||
|
create unique index uq_migtest_quoted_status2 on "migtest_QuOtEd"(status2) exclude null keys;
|
||||||
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
||||||
create unique index uq_table_to on "table"("to") exclude null keys;
|
create unique index uq_table_to on "table"("to") exclude null keys;
|
||||||
create unique index uq_table_varchar on "table"("varchar") exclude null keys;
|
create unique index uq_table_varchar on "table"("varchar") exclude null keys;
|
||||||
@@ -229,4 +239,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -77,6 +77,13 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
|
|||||||
execute stmt;
|
execute stmt;
|
||||||
end if;
|
end if;
|
||||||
end$$;
|
end$$;
|
||||||
|
delimiter $$
|
||||||
|
begin
|
||||||
|
if exists (select indname from syscat.indexes where indschema = current_schema and ucase(indname) = 'IX_MIGTEST_QUOTED_STATUS1') then
|
||||||
|
prepare stmt from 'drop index ix_migtest_quoted_status1';
|
||||||
|
execute stmt;
|
||||||
|
end if;
|
||||||
|
end$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
|||||||
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||||
|
drop table "migtest_QuOtEd";
|
||||||
drop table migtest_e_ref;
|
drop table migtest_e_ref;
|
||||||
delimiter $$
|
delimiter $$
|
||||||
begin
|
begin
|
||||||
|
|||||||
@@ -148,6 +148,15 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
|
|||||||
end if;
|
end if;
|
||||||
end$$;
|
end$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -205,6 +214,7 @@ alter table migtest_e_history6_history alter column test_number1 drop not null;
|
|||||||
alter table migtest_e_history6_history alter column test_number2 set not null;
|
alter table migtest_e_history6_history alter column test_number2 set not null;
|
||||||
call sysproc.admin_cmd('reorg table migtest_e_history6_history');
|
call sysproc.admin_cmd('reorg table migtest_e_history6_history');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
create unique index uq_migtest_quoted_status2 on "migtest_QuOtEd"(status2) exclude null keys;
|
||||||
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
||||||
alter table migtest_e_basic add constraint ck_migtest_e_basic_status check ( status in ('N','A','I'));
|
alter table migtest_e_basic add constraint ck_migtest_e_basic_status check ( status in ('N','A','I'));
|
||||||
alter table migtest_e_basic add constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I'));
|
alter table migtest_e_basic add constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I'));
|
||||||
@@ -226,3 +236,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
-1073246286, 1.0__initial.sql
|
-527393880, 1.0__initial.sql
|
||||||
1098680715, 1.1.sql
|
-13325084, 1.1.sql
|
||||||
-1405930325, 1.2__dropsFor_1.1.sql
|
-1187336846, 1.2__dropsFor_1.1.sql
|
||||||
2071169682, 1.3.sql
|
1482397777, 1.3.sql
|
||||||
-1713819679, 1.4__dropsFor_1.3.sql
|
-1713819679, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -125,6 +125,15 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_mgtst_qtd_stts1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_mgtst_qtd_stts2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -209,6 +218,7 @@ create table migtest_e_history5_history as (select * from migtest_e_history5) wi
|
|||||||
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
||||||
create table migtest_e_history6_history as (select * from migtest_e_history6) with no data;
|
create table migtest_e_history6_history as (select * from migtest_e_history6) with no data;
|
||||||
alter table migtest_e_history6 add versioning use history table migtest_e_history6_history;
|
alter table migtest_e_history6 add versioning use history table migtest_e_history6_history;
|
||||||
|
create unique index uq_mgtst_qtd_stts2 on "migtest_QuOtEd"(status2) exclude null keys;
|
||||||
alter table migtest_e_ref add constraint uq_mgtst__rf_nm unique (name);
|
alter table migtest_e_ref add constraint uq_mgtst__rf_nm unique (name);
|
||||||
create unique index uq_table_to on "table"("to") exclude null keys;
|
create unique index uq_table_to on "table"("to") exclude null keys;
|
||||||
create unique index uq_table_varchar on "table"("varchar") exclude null keys;
|
create unique index uq_table_varchar on "table"("varchar") exclude null keys;
|
||||||
@@ -229,4 +239,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_mgtst__b_eu8csq on migtest_e_basic (indextest1);
|
create index ix_mgtst__b_eu8csq on migtest_e_basic (indextest1);
|
||||||
create index ix_mgtst__b_eu8csu on migtest_e_basic (indextest5);
|
create index ix_mgtst__b_eu8csu on migtest_e_basic (indextest5);
|
||||||
|
create index ix_mgtst_qtd_stts1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -77,6 +77,13 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
|
|||||||
execute stmt;
|
execute stmt;
|
||||||
end if;
|
end if;
|
||||||
end$$;
|
end$$;
|
||||||
|
delimiter $$
|
||||||
|
begin
|
||||||
|
if exists (select indname from syscat.indexes where indschema = current_schema and ucase(indname) = 'IX_MGTST_QTD_STTS1') then
|
||||||
|
prepare stmt from 'drop index ix_mgtst_qtd_stts1';
|
||||||
|
execute stmt;
|
||||||
|
end if;
|
||||||
|
end$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
+1
@@ -15,6 +15,7 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
|||||||
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||||
|
drop table "migtest_QuOtEd";
|
||||||
drop table migtest_e_ref;
|
drop table migtest_e_ref;
|
||||||
delimiter $$
|
delimiter $$
|
||||||
begin
|
begin
|
||||||
|
|||||||
@@ -148,6 +148,15 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
|
|||||||
end if;
|
end if;
|
||||||
end$$;
|
end$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_mgtst_qtd_stts1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_mgtst_qtd_stts2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -205,6 +214,7 @@ alter table migtest_e_history6_history alter column test_number1 drop not null;
|
|||||||
alter table migtest_e_history6_history alter column test_number2 set not null;
|
alter table migtest_e_history6_history alter column test_number2 set not null;
|
||||||
call sysproc.admin_cmd('reorg table migtest_e_history6_history');
|
call sysproc.admin_cmd('reorg table migtest_e_history6_history');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
create unique index uq_mgtst_qtd_stts2 on "migtest_QuOtEd"(status2) exclude null keys;
|
||||||
alter table migtest_e_ref add constraint uq_mgtst__rf_nm unique (name);
|
alter table migtest_e_ref add constraint uq_mgtst__rf_nm unique (name);
|
||||||
alter table migtest_e_basic add constraint ck_mgtst__bsc_stts check ( status in ('N','A','I'));
|
alter table migtest_e_basic add constraint ck_mgtst__bsc_stts check ( status in ('N','A','I'));
|
||||||
alter table migtest_e_basic add constraint ck_mgtst__b_z543fg check ( status2 in ('N','A','I'));
|
alter table migtest_e_basic add constraint ck_mgtst__b_z543fg check ( status2 in ('N','A','I'));
|
||||||
@@ -226,3 +236,4 @@ alter table migtest_e_basic add constraint fk_mgtst__bsc_rf_d foreign key (eref_
|
|||||||
|
|
||||||
create index ix_mgtst__b_eu8csq on migtest_e_basic (indextest1);
|
create index ix_mgtst__b_eu8csq on migtest_e_basic (indextest1);
|
||||||
create index ix_mgtst__b_eu8csu on migtest_e_basic (indextest5);
|
create index ix_mgtst__b_eu8csu on migtest_e_basic (indextest5);
|
||||||
|
create index ix_mgtst_qtd_stts1 on "migtest_QuOtEd" (status1);
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
2054922533, 1.0__initial.sql
|
-1919802090, 1.0__initial.sql
|
||||||
1340888486, 1.1.sql
|
142879086, 1.1.sql
|
||||||
-1405930325, 1.2__dropsFor_1.1.sql
|
-1187336846, 1.2__dropsFor_1.1.sql
|
||||||
923642558, 1.3.sql
|
214437961, 1.3.sql
|
||||||
-1713819679, 1.4__dropsFor_1.3.sql
|
-1713819679, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -125,6 +125,15 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -209,6 +218,7 @@ create table migtest_e_history5_history as (select * from migtest_e_history5) wi
|
|||||||
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
||||||
create table migtest_e_history6_history as (select * from migtest_e_history6) with no data;
|
create table migtest_e_history6_history as (select * from migtest_e_history6) with no data;
|
||||||
alter table migtest_e_history6 add versioning use history table migtest_e_history6_history;
|
alter table migtest_e_history6 add versioning use history table migtest_e_history6_history;
|
||||||
|
create unique index uq_migtest_quoted_status2 on "migtest_QuOtEd"(status2) exclude null keys;
|
||||||
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
||||||
create unique index uq_table_to on "table"("to") exclude null keys;
|
create unique index uq_table_to on "table"("to") exclude null keys;
|
||||||
create unique index uq_table_varchar on "table"("varchar") exclude null keys;
|
create unique index uq_table_varchar on "table"("varchar") exclude null keys;
|
||||||
@@ -229,4 +239,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -77,6 +77,13 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
|
|||||||
execute stmt;
|
execute stmt;
|
||||||
end if;
|
end if;
|
||||||
end$$;
|
end$$;
|
||||||
|
delimiter $$
|
||||||
|
begin
|
||||||
|
if exists (select indname from syscat.indexes where indschema = current_schema and ucase(indname) = 'IX_MIGTEST_QUOTED_STATUS1') then
|
||||||
|
prepare stmt from 'drop index ix_migtest_quoted_status1';
|
||||||
|
execute stmt;
|
||||||
|
end if;
|
||||||
|
end$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
|||||||
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||||
|
drop table "migtest_QuOtEd";
|
||||||
drop table migtest_e_ref;
|
drop table migtest_e_ref;
|
||||||
delimiter $$
|
delimiter $$
|
||||||
begin
|
begin
|
||||||
|
|||||||
@@ -148,6 +148,15 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
|
|||||||
end if;
|
end if;
|
||||||
end$$;
|
end$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -205,6 +214,7 @@ alter table migtest_e_history6_history alter column test_number1 drop not null;
|
|||||||
alter table migtest_e_history6_history alter column test_number2 set not null;
|
alter table migtest_e_history6_history alter column test_number2 set not null;
|
||||||
call sysproc.admin_cmd('reorg table migtest_e_history6_history');
|
call sysproc.admin_cmd('reorg table migtest_e_history6_history');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
create unique index uq_migtest_quoted_status2 on "migtest_QuOtEd"(status2) exclude null keys;
|
||||||
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
||||||
alter table migtest_e_basic add constraint ck_migtest_e_basic_status check ( status in ('N','A','I'));
|
alter table migtest_e_basic add constraint ck_migtest_e_basic_status check ( status in ('N','A','I'));
|
||||||
alter table migtest_e_basic add constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I'));
|
alter table migtest_e_basic add constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I'));
|
||||||
@@ -226,3 +236,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
-1519091511, 1.0__initial.sql
|
1215388873, 1.0__initial.sql
|
||||||
-1557025581, 1.1.sql
|
301356990, 1.1.sql
|
||||||
-1405930325, 1.2__dropsFor_1.1.sql
|
-1187336846, 1.2__dropsFor_1.1.sql
|
||||||
-1928774481, 1.3.sql
|
1289702979, 1.3.sql
|
||||||
-1713819679, 1.4__dropsFor_1.3.sql
|
-1713819679, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -125,6 +125,15 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -209,6 +218,7 @@ create table migtest_e_history5_history as (select * from migtest_e_history5) wi
|
|||||||
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
alter table migtest_e_history5 add versioning use history table migtest_e_history5_history;
|
||||||
create table migtest_e_history6_history as (select * from migtest_e_history6) with no data;
|
create table migtest_e_history6_history as (select * from migtest_e_history6) with no data;
|
||||||
alter table migtest_e_history6 add versioning use history table migtest_e_history6_history;
|
alter table migtest_e_history6 add versioning use history table migtest_e_history6_history;
|
||||||
|
create unique index uq_migtest_quoted_status2 on "migtest_QuOtEd"(status2) exclude null keys;
|
||||||
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
||||||
create unique index uq_table_to on "table"("to") exclude null keys;
|
create unique index uq_table_to on "table"("to") exclude null keys;
|
||||||
create unique index uq_table_varchar on "table"("varchar") exclude null keys;
|
create unique index uq_table_varchar on "table"("varchar") exclude null keys;
|
||||||
@@ -229,4 +239,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -77,6 +77,13 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
|
|||||||
execute stmt;
|
execute stmt;
|
||||||
end if;
|
end if;
|
||||||
end$$;
|
end$$;
|
||||||
|
delimiter $$
|
||||||
|
begin
|
||||||
|
if exists (select indname from syscat.indexes where indschema = current_schema and ucase(indname) = 'IX_MIGTEST_QUOTED_STATUS1') then
|
||||||
|
prepare stmt from 'drop index ix_migtest_quoted_status1';
|
||||||
|
execute stmt;
|
||||||
|
end if;
|
||||||
|
end$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
|||||||
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
call sysproc.admin_cmd('reorg table migtest_e_history2_history');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
alter table migtest_e_history2 add versioning use history table migtest_e_history2_history;
|
||||||
|
drop table "migtest_QuOtEd";
|
||||||
drop table migtest_e_ref;
|
drop table migtest_e_ref;
|
||||||
delimiter $$
|
delimiter $$
|
||||||
begin
|
begin
|
||||||
|
|||||||
@@ -148,6 +148,15 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
|
|||||||
end if;
|
end if;
|
||||||
end$$;
|
end$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -205,6 +214,7 @@ alter table migtest_e_history6_history alter column test_number1 drop not null;
|
|||||||
alter table migtest_e_history6_history alter column test_number2 set not null;
|
alter table migtest_e_history6_history alter column test_number2 set not null;
|
||||||
call sysproc.admin_cmd('reorg table migtest_e_history6_history');
|
call sysproc.admin_cmd('reorg table migtest_e_history6_history');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
create unique index uq_migtest_quoted_status2 on "migtest_QuOtEd"(status2) exclude null keys;
|
||||||
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
alter table migtest_e_ref add constraint uq_migtest_e_ref_name unique (name);
|
||||||
alter table migtest_e_basic add constraint ck_migtest_e_basic_status check ( status in ('N','A','I'));
|
alter table migtest_e_basic add constraint ck_migtest_e_basic_status check ( status in ('N','A','I'));
|
||||||
alter table migtest_e_basic add constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I'));
|
alter table migtest_e_basic add constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I'));
|
||||||
@@ -226,3 +236,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
-1519091511, 1.0__initial.sql
|
1215388873, 1.0__initial.sql
|
||||||
-1557025581, 1.1.sql
|
301356990, 1.1.sql
|
||||||
-1405930325, 1.2__dropsFor_1.1.sql
|
-1187336846, 1.2__dropsFor_1.1.sql
|
||||||
-1928774481, 1.3.sql
|
1289702979, 1.3.sql
|
||||||
-1713819679, 1.4__dropsFor_1.3.sql
|
-1713819679, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -127,6 +127,16 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -191,4 +201,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -9,6 +9,7 @@ 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 migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||||
drop index if exists ix_migtest_e_basic_indextest1;
|
drop index if exists ix_migtest_e_basic_indextest1;
|
||||||
drop index if exists ix_migtest_e_basic_indextest5;
|
drop index if exists ix_migtest_e_basic_indextest5;
|
||||||
|
drop index if exists ix_migtest_quoted_status1;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
|
|||||||
@@ -7,4 +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_string1;
|
||||||
alter table migtest_e_history2 drop column obsolete_string2;
|
alter table migtest_e_history2 drop column obsolete_string2;
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
drop table if exists "migtest_QuOtEd";
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
@@ -17,6 +17,16 @@ alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_stat
|
|||||||
drop index if exists ix_migtest_e_basic_indextest3;
|
drop index if exists ix_migtest_e_basic_indextest3;
|
||||||
drop index if exists ix_migtest_e_basic_indextest6;
|
drop index if exists ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -74,3 +84,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
-1347475412, 1.0__initial.sql
|
-710189690, 1.0__initial.sql
|
||||||
2132717520, 1.1.sql
|
1626063176, 1.1.sql
|
||||||
1279151426, 1.2__dropsFor_1.1.sql
|
688811494, 1.2__dropsFor_1.1.sql
|
||||||
-796269364, 1.3.sql
|
2025934113, 1.3.sql
|
||||||
80209848, 1.4__dropsFor_1.3.sql
|
80209848, 1.4__dropsFor_1.3.sql
|
||||||
|
|
||||||
@@ -127,6 +127,16 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -265,4 +275,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -9,6 +9,7 @@ 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 migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||||
drop index if exists ix_migtest_e_basic_indextest1;
|
drop index if exists ix_migtest_e_basic_indextest1;
|
||||||
drop index if exists ix_migtest_e_basic_indextest5;
|
drop index if exists ix_migtest_e_basic_indextest5;
|
||||||
|
drop index if exists ix_migtest_quoted_status1;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -14,5 +14,6 @@ alter table migtest_e_history2_history drop column obsolete_string2;
|
|||||||
-- apply post alter
|
-- 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 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.config.dbplatform.h2.H2HistoryTrigger";
|
create trigger migtest_e_history2_history_upd before update,delete on migtest_e_history2 for each row call "io.ebean.config.dbplatform.h2.H2HistoryTrigger";
|
||||||
|
drop table if exists "migtest_QuOtEd";
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
drop sequence if exists migtest_e_ref_seq;
|
drop sequence if exists migtest_e_ref_seq;
|
||||||
@@ -17,6 +17,16 @@ alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_stat
|
|||||||
drop index if exists ix_migtest_e_basic_indextest3;
|
drop index if exists ix_migtest_e_basic_indextest3;
|
||||||
drop index if exists ix_migtest_e_basic_indextest6;
|
drop index if exists ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -95,3 +105,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
-1179806373, 1.0__initial.sql
|
-1826073043, 1.0__initial.sql
|
||||||
398205555, 1.1.sql
|
-132538485, 1.1.sql
|
||||||
-1366392410, 1.2__dropsFor_1.1.sql
|
-2064267391, 1.2__dropsFor_1.1.sql
|
||||||
-523874424, 1.3.sql
|
-94686510, 1.3.sql
|
||||||
-1382108238, 1.4__dropsFor_1.3.sql
|
-1382108238, 1.4__dropsFor_1.3.sql
|
||||||
783227075, R__multi_comments.sql
|
783227075, R__multi_comments.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|||||||
@@ -127,6 +127,16 @@ create column table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create column table "migtest_QuOtEd" (
|
||||||
|
id nvarchar(255) not null,
|
||||||
|
status1 nvarchar(1),
|
||||||
|
status2 nvarchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create column table migtest_e_ref (
|
create column table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name nvarchar(127) not null,
|
name nvarchar(127) not null,
|
||||||
@@ -271,4 +281,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
-- explicit index "ix_migtest_e_basic_indextest1" for single column "indextest1" of table "migtest_e_basic" is not necessary;
|
-- explicit index "ix_migtest_e_basic_indextest1" for single column "indextest1" of table "migtest_e_basic" is not necessary;
|
||||||
-- explicit index "ix_migtest_e_basic_indextest5" for single column "indextest5" of table "migtest_e_basic" is not necessary;
|
-- explicit index "ix_migtest_e_basic_indextest5" for single column "indextest5" of table "migtest_e_basic" is not necessary;
|
||||||
|
-- explicit index "ix_migtest_quoted_status1" for single column "status1" of table ""migtest_QuOtEd"" is not necessary;
|
||||||
-- explicit index "ix_table_from" for single column ""from"" of table ""table"" is not necessary;
|
-- explicit index "ix_table_from" for single column ""from"" of table ""table"" is not necessary;
|
||||||
@@ -51,6 +51,13 @@ declare exit handler for sql_error_code 261 begin end;
|
|||||||
exec 'drop index ix_migtest_e_basic_indextest5';
|
exec 'drop index ix_migtest_e_basic_indextest5';
|
||||||
end;
|
end;
|
||||||
$$;
|
$$;
|
||||||
|
delimiter $$
|
||||||
|
do
|
||||||
|
begin
|
||||||
|
declare exit handler for sql_error_code 261 begin end;
|
||||||
|
exec 'drop index ix_migtest_quoted_status1';
|
||||||
|
end;
|
||||||
|
$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create column table migtest_e_user (
|
create column table migtest_e_user (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -12,4 +12,5 @@ CALL usp_ebean_drop_column('migtest_e_history2_history', 'obsolete_string1');
|
|||||||
CALL usp_ebean_drop_column('migtest_e_history2_history', 'obsolete_string2');
|
CALL usp_ebean_drop_column('migtest_e_history2_history', 'obsolete_string2');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
alter table migtest_e_history2 add system versioning history table migtest_e_history2_history not validated;
|
alter table migtest_e_history2 add system versioning history table migtest_e_history2_history not validated;
|
||||||
|
drop table "migtest_QuOtEd" cascade;
|
||||||
drop table migtest_e_ref cascade;
|
drop table migtest_e_ref cascade;
|
||||||
@@ -77,6 +77,16 @@ exec 'drop index ix_migtest_e_basic_indextest6';
|
|||||||
end;
|
end;
|
||||||
$$;
|
$$;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create column table "migtest_QuOtEd" (
|
||||||
|
id nvarchar(255) not null,
|
||||||
|
status1 nvarchar(1),
|
||||||
|
status2 nvarchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create column table migtest_e_ref (
|
create column table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name nvarchar(127) not null,
|
name nvarchar(127) not null,
|
||||||
@@ -141,3 +151,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
-- explicit index "ix_migtest_e_basic_indextest1" for single column "indextest1" of table "migtest_e_basic" is not necessary;
|
-- explicit index "ix_migtest_e_basic_indextest1" for single column "indextest1" of table "migtest_e_basic" is not necessary;
|
||||||
-- explicit index "ix_migtest_e_basic_indextest5" for single column "indextest5" of table "migtest_e_basic" is not necessary;
|
-- explicit index "ix_migtest_e_basic_indextest5" for single column "indextest5" of table "migtest_e_basic" is not necessary;
|
||||||
|
-- explicit index "ix_migtest_quoted_status1" for single column "status1" of table ""migtest_QuOtEd"" is not necessary;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
-745347271, I__create_procs.sql
|
-745347271, I__create_procs.sql
|
||||||
1934891896, 1.0__initial.sql
|
1631114894, 1.0__initial.sql
|
||||||
187688059, 1.1.sql
|
-1483493637, 1.1.sql
|
||||||
197547825, 1.2__dropsFor_1.1.sql
|
1535221752, 1.2__dropsFor_1.1.sql
|
||||||
-1989736027, 1.3.sql
|
483907844, 1.3.sql
|
||||||
1812245353, 1.4__dropsFor_1.3.sql
|
1812245353, 1.4__dropsFor_1.3.sql
|
||||||
1906063401, R__order_views_hana.sql
|
1906063401, R__order_views_hana.sql
|
||||||
|
|
||||||
@@ -127,6 +127,16 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity (start with 1) not null,
|
id integer generated by default as identity (start with 1) not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -191,4 +201,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -9,6 +9,7 @@ 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 migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||||
drop index if exists ix_migtest_e_basic_indextest1;
|
drop index if exists ix_migtest_e_basic_indextest1;
|
||||||
drop index if exists ix_migtest_e_basic_indextest5;
|
drop index if exists ix_migtest_e_basic_indextest5;
|
||||||
|
drop index if exists ix_migtest_quoted_status1;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer generated by default as identity (start with 1) not null,
|
id integer generated by default as identity (start with 1) not null,
|
||||||
|
|||||||
@@ -7,5 +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_string1;
|
||||||
alter table migtest_e_history2 drop column obsolete_string2;
|
alter table migtest_e_history2 drop column obsolete_string2;
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
drop table if exists "migtest_QuOtEd";
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
drop sequence if exists migtest_e_ref_seq;
|
drop sequence if exists migtest_e_ref_seq;
|
||||||
@@ -17,6 +17,16 @@ alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_stat
|
|||||||
drop index if exists ix_migtest_e_basic_indextest3;
|
drop index if exists ix_migtest_e_basic_indextest3;
|
||||||
drop index if exists ix_migtest_e_basic_indextest6;
|
drop index if exists ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity (start with 1) not null,
|
id integer generated by default as identity (start with 1) not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -74,3 +84,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
-917796012, 1.0__initial.sql
|
-906026927, 1.0__initial.sql
|
||||||
-838725141, 1.1.sql
|
135699844, 1.1.sql
|
||||||
-300925212, 1.2__dropsFor_1.1.sql
|
-848622216, 1.2__dropsFor_1.1.sql
|
||||||
-1549893170, 1.3.sql
|
781720387, 1.3.sql
|
||||||
-972999284, 1.4__dropsFor_1.3.sql
|
-972999284, 1.4__dropsFor_1.3.sql
|
||||||
861001272, R__order_views_hsqldb.sql
|
861001272, R__order_views_hsqldb.sql
|
||||||
|
|
||||||
+9
@@ -124,6 +124,14 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table `migtest_QuOtEd` (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -194,4 +202,5 @@ alter table `table` add constraint fk_table_foreign foreign key (`foreign`) refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on `migtest_QuOtEd` (status1);
|
||||||
create index ix_table_from on `table` (`from`);
|
create index ix_table_from on `table` (`from`);
|
||||||
@@ -6,6 +6,7 @@ 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 migtest_e_basic drop index uq_migtest_e_basic_indextest6;
|
||||||
drop index ix_migtest_e_basic_indextest1 on migtest_e_basic;
|
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_e_basic_indextest5 on migtest_e_basic;
|
||||||
|
drop index ix_migtest_quoted_status1 on `migtest_QuOtEd`;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
|
|||||||
+1
@@ -9,5 +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_string1;
|
||||||
alter table migtest_e_history2 drop column obsolete_string2;
|
alter table migtest_e_history2 drop column obsolete_string2;
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
drop table if exists `migtest_QuOtEd`;
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
drop sequence if exists migtest_e_ref_seq;
|
drop sequence if exists migtest_e_ref_seq;
|
||||||
@@ -14,6 +14,14 @@ alter table migtest_e_basic drop index uq_migtest_e_basic_indextest5;
|
|||||||
drop index ix_migtest_e_basic_indextest3 on migtest_e_basic;
|
drop index ix_migtest_e_basic_indextest3 on migtest_e_basic;
|
||||||
drop index ix_migtest_e_basic_indextest6 on migtest_e_basic;
|
drop index ix_migtest_e_basic_indextest6 on migtest_e_basic;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table `migtest_QuOtEd` (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -58,3 +66,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on `migtest_QuOtEd` (status1);
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
675320779, 1.0__initial.sql
|
168258180, 1.0__initial.sql
|
||||||
840323734, 1.1.sql
|
-1449201260, 1.1.sql
|
||||||
-828985759, 1.2__dropsFor_1.1.sql
|
919151678, 1.2__dropsFor_1.1.sql
|
||||||
-1470028617, 1.3.sql
|
-1031408459, 1.3.sql
|
||||||
-446860935, 1.4__dropsFor_1.3.sql
|
-446860935, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -124,6 +124,14 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table `migtest_QuOtEd` (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -194,4 +202,5 @@ alter table `table` add constraint fk_table_foreign foreign key (`foreign`) refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on `migtest_QuOtEd` (status1);
|
||||||
create index ix_table_from on `table` (`from`);
|
create index ix_table_from on `table` (`from`);
|
||||||
@@ -6,6 +6,7 @@ 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 migtest_e_basic drop index uq_migtest_e_basic_indextest6;
|
||||||
drop index ix_migtest_e_basic_indextest1 on migtest_e_basic;
|
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_e_basic_indextest5 on migtest_e_basic;
|
||||||
|
drop index ix_migtest_quoted_status1 on `migtest_QuOtEd`;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
|
|||||||
@@ -9,5 +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_string1');
|
||||||
CALL usp_ebean_drop_column('migtest_e_history2', 'obsolete_string2');
|
CALL usp_ebean_drop_column('migtest_e_history2', 'obsolete_string2');
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
drop table if exists `migtest_QuOtEd`;
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
drop sequence if exists migtest_e_ref_seq;
|
drop sequence if exists migtest_e_ref_seq;
|
||||||
@@ -14,6 +14,14 @@ alter table migtest_e_basic drop index uq_migtest_e_basic_indextest5;
|
|||||||
drop index ix_migtest_e_basic_indextest3 on migtest_e_basic;
|
drop index ix_migtest_e_basic_indextest3 on migtest_e_basic;
|
||||||
drop index ix_migtest_e_basic_indextest6 on migtest_e_basic;
|
drop index ix_migtest_e_basic_indextest6 on migtest_e_basic;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table `migtest_QuOtEd` (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -58,3 +66,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on `migtest_QuOtEd` (status1);
|
||||||
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
1835064798, I__create_procs.sql
|
1835064798, I__create_procs.sql
|
||||||
675320779, 1.0__initial.sql
|
168258180, 1.0__initial.sql
|
||||||
840323734, 1.1.sql
|
-1449201260, 1.1.sql
|
||||||
2123392915, 1.2__dropsFor_1.1.sql
|
1187950993, 1.2__dropsFor_1.1.sql
|
||||||
-1470028617, 1.3.sql
|
-1031408459, 1.3.sql
|
||||||
-692020559, 1.4__dropsFor_1.3.sql
|
-692020559, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -91,6 +91,12 @@
|
|||||||
<column name="test_number1" type="integer"/>
|
<column name="test_number1" type="integer"/>
|
||||||
<column name="test_number2" type="integer" notnull="true"/>
|
<column name="test_number2" type="integer" notnull="true"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
|
<createTable name=""migtest_QuOtEd"" identityType="external" pkName="pk_migtest_quoted">
|
||||||
|
<column name="id" type="varchar" primaryKey="true"/>
|
||||||
|
<column name="status1" type="varchar(1)" checkConstraint="check ( status1 in ('N','A','I'))" checkConstraintName="ck_migtest_quoted_status1"/>
|
||||||
|
<column name="status2" type="varchar(1)" checkConstraint="check ( status2 in ('N','A','I'))" checkConstraintName="ck_migtest_quoted_status2"/>
|
||||||
|
<uniqueConstraint name="uq_migtest_quoted_status2" columnNames="status2" oneToOne="false" nullableColumns="status2"/>
|
||||||
|
</createTable>
|
||||||
<createTable name="migtest_e_ref" pkName="pk_migtest_e_ref">
|
<createTable name="migtest_e_ref" pkName="pk_migtest_e_ref">
|
||||||
<column name="id" type="integer" primaryKey="true"/>
|
<column name="id" type="integer" primaryKey="true"/>
|
||||||
<column name="name" type="varchar(127)" notnull="true"/>
|
<column name="name" type="varchar(127)" notnull="true"/>
|
||||||
@@ -127,6 +133,7 @@
|
|||||||
</createTable>
|
</createTable>
|
||||||
<createIndex indexName="ix_migtest_e_basic_indextest1" tableName="migtest_e_basic" columns="indextest1"/>
|
<createIndex indexName="ix_migtest_e_basic_indextest1" tableName="migtest_e_basic" columns="indextest1"/>
|
||||||
<createIndex indexName="ix_migtest_e_basic_indextest5" tableName="migtest_e_basic" columns="indextest5"/>
|
<createIndex indexName="ix_migtest_e_basic_indextest5" tableName="migtest_e_basic" columns="indextest5"/>
|
||||||
|
<createIndex indexName="ix_migtest_quoted_status1" tableName=""migtest_QuOtEd"" columns="status1"/>
|
||||||
<createIndex indexName="ix_table_from" tableName=""table"" columns=""from""/>
|
<createIndex indexName="ix_table_from" tableName=""table"" columns=""from""/>
|
||||||
<createIndex indexName="idxd_migtest_0" tableName="migtest_oto_child" columns="" definition="create index idxd_migtest_0 on migtest_oto_child using hash (upper(name)) where upper(name) = 'JIM'" platforms="POSTGRES"/>
|
<createIndex indexName="idxd_migtest_0" tableName="migtest_oto_child" columns="" definition="create index idxd_migtest_0 on migtest_oto_child using hash (upper(name)) where upper(name) = 'JIM'" platforms="POSTGRES"/>
|
||||||
<createIndex indexName="ix_migtest_oto_child_lowername_id" tableName="migtest_oto_child" columns="lower(name),id" concurrent="true" platforms="POSTGRES"/>
|
<createIndex indexName="ix_migtest_oto_child_lowername_id" tableName="migtest_oto_child" columns="lower(name),id" concurrent="true" platforms="POSTGRES"/>
|
||||||
|
|||||||
@@ -103,6 +103,7 @@
|
|||||||
<createIndex indexName="ix_migtest_oto_child_name" tableName="migtest_oto_child" columns="name" platforms="POSTGRES"/>
|
<createIndex indexName="ix_migtest_oto_child_name" tableName="migtest_oto_child" columns="name" platforms="POSTGRES"/>
|
||||||
<dropIndex indexName="ix_migtest_e_basic_indextest1" tableName="migtest_e_basic"/>
|
<dropIndex indexName="ix_migtest_e_basic_indextest1" tableName="migtest_e_basic"/>
|
||||||
<dropIndex indexName="ix_migtest_e_basic_indextest5" tableName="migtest_e_basic"/>
|
<dropIndex indexName="ix_migtest_e_basic_indextest5" tableName="migtest_e_basic"/>
|
||||||
|
<dropIndex indexName="ix_migtest_quoted_status1" tableName=""migtest_QuOtEd""/>
|
||||||
<dropIndex indexName="idxd_migtest_0" tableName="migtest_oto_child" platforms="POSTGRES"/>
|
<dropIndex indexName="idxd_migtest_0" tableName="migtest_oto_child" platforms="POSTGRES"/>
|
||||||
<dropIndex indexName="ix_migtest_oto_child_lowername_id" tableName="migtest_oto_child" concurrent="true" platforms="POSTGRES"/>
|
<dropIndex indexName="ix_migtest_oto_child_lowername_id" tableName="migtest_oto_child" concurrent="true" platforms="POSTGRES"/>
|
||||||
<dropIndex indexName="ix_migtest_oto_child_lowername" tableName="migtest_oto_child" platforms="POSTGRES"/>
|
<dropIndex indexName="ix_migtest_oto_child_lowername" tableName="migtest_oto_child" platforms="POSTGRES"/>
|
||||||
@@ -114,6 +115,7 @@
|
|||||||
<dropColumn columnName="eref_id" tableName="migtest_e_basic"/>
|
<dropColumn columnName="eref_id" tableName="migtest_e_basic"/>
|
||||||
<dropColumn columnName="obsolete_string1" tableName="migtest_e_history2" withHistory="true"/>
|
<dropColumn columnName="obsolete_string1" tableName="migtest_e_history2" withHistory="true"/>
|
||||||
<dropColumn columnName="obsolete_string2" tableName="migtest_e_history2" withHistory="true"/>
|
<dropColumn columnName="obsolete_string2" tableName="migtest_e_history2" withHistory="true"/>
|
||||||
|
<dropTable name=""migtest_QuOtEd""/>
|
||||||
<dropTable name="migtest_e_ref" sequenceCol="id"/>
|
<dropTable name="migtest_e_ref" sequenceCol="id"/>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
</migration>
|
</migration>
|
||||||
+1
@@ -7,6 +7,7 @@
|
|||||||
<dropColumn columnName="eref_id" tableName="migtest_e_basic"/>
|
<dropColumn columnName="eref_id" tableName="migtest_e_basic"/>
|
||||||
<dropColumn columnName="obsolete_string1" tableName="migtest_e_history2" withHistory="true"/>
|
<dropColumn columnName="obsolete_string1" tableName="migtest_e_history2" withHistory="true"/>
|
||||||
<dropColumn columnName="obsolete_string2" tableName="migtest_e_history2" withHistory="true"/>
|
<dropColumn columnName="obsolete_string2" tableName="migtest_e_history2" withHistory="true"/>
|
||||||
|
<dropTable name=""migtest_QuOtEd""/>
|
||||||
<dropTable name="migtest_e_ref" sequenceCol="id"/>
|
<dropTable name="migtest_e_ref" sequenceCol="id"/>
|
||||||
</changeSet>
|
</changeSet>
|
||||||
</migration>
|
</migration>
|
||||||
@@ -35,6 +35,12 @@
|
|||||||
<alterColumn columnName="test_number" tableName="migtest_e_history4" withHistory="true" type="integer" currentType="bigint" currentNotnull="false"/>
|
<alterColumn columnName="test_number" tableName="migtest_e_history4" withHistory="true" type="integer" currentType="bigint" currentNotnull="false"/>
|
||||||
<alterColumn columnName="test_number1" tableName="migtest_e_history6" withHistory="true" currentType="integer" defaultValue="DROP DEFAULT" notnull="false" currentNotnull="true"/>
|
<alterColumn columnName="test_number1" tableName="migtest_e_history6" withHistory="true" currentType="integer" defaultValue="DROP DEFAULT" notnull="false" currentNotnull="true"/>
|
||||||
<alterColumn columnName="test_number2" tableName="migtest_e_history6" withHistory="true" currentType="integer" defaultValue="7" notnull="true" currentNotnull="false"/>
|
<alterColumn columnName="test_number2" tableName="migtest_e_history6" withHistory="true" currentType="integer" defaultValue="7" notnull="true" currentNotnull="false"/>
|
||||||
|
<createTable name=""migtest_QuOtEd"" identityType="external" pkName="pk_migtest_quoted">
|
||||||
|
<column name="id" type="varchar" primaryKey="true"/>
|
||||||
|
<column name="status1" type="varchar(1)" checkConstraint="check ( status1 in ('N','A','I'))" checkConstraintName="ck_migtest_quoted_status1"/>
|
||||||
|
<column name="status2" type="varchar(1)" checkConstraint="check ( status2 in ('N','A','I'))" checkConstraintName="ck_migtest_quoted_status2"/>
|
||||||
|
<uniqueConstraint name="uq_migtest_quoted_status2" columnNames="status2" oneToOne="false" nullableColumns="status2"/>
|
||||||
|
</createTable>
|
||||||
<createTable name="migtest_e_ref" pkName="pk_migtest_e_ref">
|
<createTable name="migtest_e_ref" pkName="pk_migtest_e_ref">
|
||||||
<column name="id" type="integer" primaryKey="true"/>
|
<column name="id" type="integer" primaryKey="true"/>
|
||||||
<column name="name" type="varchar(127)" notnull="true"/>
|
<column name="name" type="varchar(127)" notnull="true"/>
|
||||||
@@ -45,6 +51,7 @@
|
|||||||
<addUniqueConstraint constraintName="uq_migtest_oto_master_name" tableName="migtest_oto_master" 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"/>
|
||||||
<createIndex indexName="ix_migtest_e_basic_indextest1" tableName="migtest_e_basic" columns="indextest1"/>
|
<createIndex indexName="ix_migtest_e_basic_indextest1" tableName="migtest_e_basic" columns="indextest1"/>
|
||||||
<createIndex indexName="ix_migtest_e_basic_indextest5" tableName="migtest_e_basic" columns="indextest5"/>
|
<createIndex indexName="ix_migtest_e_basic_indextest5" tableName="migtest_e_basic" columns="indextest5"/>
|
||||||
|
<createIndex indexName="ix_migtest_quoted_status1" tableName=""migtest_QuOtEd"" columns="status1"/>
|
||||||
<createIndex indexName="ix_m12_otoc71" tableName="migtest_oto_child" columns="name" platforms="POSTGRES"/>
|
<createIndex indexName="ix_m12_otoc71" tableName="migtest_oto_child" columns="name" platforms="POSTGRES"/>
|
||||||
<createIndex indexName="ix_m12_otoc72" tableName="migtest_oto_child" columns="name" platforms="MYSQL"/>
|
<createIndex indexName="ix_m12_otoc72" tableName="migtest_oto_child" columns="name" platforms="MYSQL"/>
|
||||||
<createIndex indexName="uq_m12_otoc71" tableName="migtest_oto_child" columns="lower(name)" unique="true" platforms="POSTGRES"/>
|
<createIndex indexName="uq_m12_otoc71" tableName="migtest_oto_child" columns="lower(name)" unique="true" platforms="POSTGRES"/>
|
||||||
|
|||||||
@@ -124,6 +124,14 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table `migtest_QuOtEd` (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -321,4 +329,5 @@ alter table `table` add constraint fk_table_foreign foreign key (`foreign`) refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on `migtest_QuOtEd` (status1);
|
||||||
create index ix_table_from on `table` (`from`);
|
create index ix_table_from on `table` (`from`);
|
||||||
@@ -6,6 +6,7 @@ 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 migtest_e_basic drop index uq_migtest_e_basic_indextest6;
|
||||||
drop index ix_migtest_e_basic_indextest1 on migtest_e_basic;
|
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_e_basic_indextest5 on migtest_e_basic;
|
||||||
|
drop index ix_migtest_quoted_status1 on `migtest_QuOtEd`;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
|
|||||||
@@ -25,4 +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);
|
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$$
|
end$$
|
||||||
unlock tables;
|
unlock tables;
|
||||||
|
drop table if exists `migtest_QuOtEd`;
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
@@ -14,6 +14,14 @@ alter table migtest_e_basic drop index uq_migtest_e_basic_indextest5;
|
|||||||
drop index ix_migtest_e_basic_indextest3 on migtest_e_basic;
|
drop index ix_migtest_e_basic_indextest3 on migtest_e_basic;
|
||||||
drop index ix_migtest_e_basic_indextest6 on migtest_e_basic;
|
drop index ix_migtest_e_basic_indextest6 on migtest_e_basic;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table `migtest_QuOtEd` (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -124,5 +132,6 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on `migtest_QuOtEd` (status1);
|
||||||
create index ix_m12_otoc72 on migtest_oto_child (name);
|
create index ix_m12_otoc72 on migtest_oto_child (name);
|
||||||
create index ix_migtest_oto_master_name on migtest_oto_master (name);
|
create index ix_migtest_oto_master_name on migtest_oto_master (name);
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
1835064798, I__create_procs.sql
|
1835064798, I__create_procs.sql
|
||||||
1464726622, 1.0__initial.sql
|
-1894322966, 1.0__initial.sql
|
||||||
1321178229, 1.1.sql
|
718635669, 1.1.sql
|
||||||
-1332434945, 1.2__dropsFor_1.1.sql
|
-1097227916, 1.2__dropsFor_1.1.sql
|
||||||
-105506677, 1.3.sql
|
-1972055805, 1.3.sql
|
||||||
379252952, 1.4__dropsFor_1.3.sql
|
379252952, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -124,6 +124,14 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table `migtest_QuOtEd` (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -321,4 +329,5 @@ alter table `table` add constraint fk_table_foreign foreign key (`foreign`) refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on `migtest_QuOtEd` (status1);
|
||||||
create index ix_table_from on `table` (`from`);
|
create index ix_table_from on `table` (`from`);
|
||||||
@@ -6,6 +6,7 @@ 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 migtest_e_basic drop index uq_migtest_e_basic_indextest6;
|
||||||
drop index ix_migtest_e_basic_indextest1 on migtest_e_basic;
|
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_e_basic_indextest5 on migtest_e_basic;
|
||||||
|
drop index ix_migtest_quoted_status1 on `migtest_QuOtEd`;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
|
|||||||
@@ -25,4 +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);
|
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$$
|
end$$
|
||||||
unlock tables;
|
unlock tables;
|
||||||
|
drop table if exists `migtest_QuOtEd`;
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
@@ -14,6 +14,14 @@ alter table migtest_e_basic drop index uq_migtest_e_basic_indextest5;
|
|||||||
drop index ix_migtest_e_basic_indextest3 on migtest_e_basic;
|
drop index ix_migtest_e_basic_indextest3 on migtest_e_basic;
|
||||||
drop index ix_migtest_e_basic_indextest6 on migtest_e_basic;
|
drop index ix_migtest_e_basic_indextest6 on migtest_e_basic;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table `migtest_QuOtEd` (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer auto_increment not null,
|
id integer auto_increment not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -124,5 +132,6 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on `migtest_QuOtEd` (status1);
|
||||||
create index ix_m12_otoc72 on migtest_oto_child (name);
|
create index ix_m12_otoc72 on migtest_oto_child (name);
|
||||||
create index ix_migtest_oto_master_name on migtest_oto_master (name);
|
create index ix_migtest_oto_master_name on migtest_oto_master (name);
|
||||||
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
1835064798, I__create_procs.sql
|
1835064798, I__create_procs.sql
|
||||||
782176262, 1.0__initial.sql
|
955526296, 1.0__initial.sql
|
||||||
1321178229, 1.1.sql
|
718635669, 1.1.sql
|
||||||
-1332434945, 1.2__dropsFor_1.1.sql
|
-1097227916, 1.2__dropsFor_1.1.sql
|
||||||
-105506677, 1.3.sql
|
-1972055805, 1.3.sql
|
||||||
379252952, 1.4__dropsFor_1.3.sql
|
379252952, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -127,6 +127,16 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -336,4 +346,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -9,6 +9,7 @@ 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 migtest_e_enum drop constraint ck_migtest_e_enum_test_status;
|
||||||
drop index if exists ix_migtest_e_basic_indextest1;
|
drop index if exists ix_migtest_e_basic_indextest1;
|
||||||
drop index if exists ix_migtest_e_basic_indextest5;
|
drop index if exists ix_migtest_e_basic_indextest5;
|
||||||
|
drop index if exists ix_migtest_quoted_status1;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -27,5 +27,6 @@ create or replace trigger migtest_e_history2_history_del for migtest_e_history2
|
|||||||
end_trigger;
|
end_trigger;
|
||||||
$$
|
$$
|
||||||
|
|
||||||
|
drop table if exists "migtest_QuOtEd";
|
||||||
drop table if exists migtest_e_ref;
|
drop table if exists migtest_e_ref;
|
||||||
drop sequence if exists migtest_e_ref_seq;
|
drop sequence if exists migtest_e_ref_seq;
|
||||||
@@ -17,6 +17,16 @@ alter table migtest_e_enum drop constraint ck_migtest_e_enum_test_status;
|
|||||||
drop index if exists ix_migtest_e_basic_indextest3;
|
drop index if exists ix_migtest_e_basic_indextest3;
|
||||||
drop index if exists ix_migtest_e_basic_indextest6;
|
drop index if exists ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -144,3 +154,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
-357978944, 1.0__initial.sql
|
-355978970, 1.0__initial.sql
|
||||||
1244774121, 1.1.sql
|
-1099441011, 1.1.sql
|
||||||
-424253630, 1.2__dropsFor_1.1.sql
|
1530685455, 1.2__dropsFor_1.1.sql
|
||||||
-1988156517, 1.3.sql
|
1263834751, 1.3.sql
|
||||||
-1189704269, 1.4__dropsFor_1.3.sql
|
-1189704269, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -127,6 +127,16 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar2(255) not null,
|
||||||
|
status1 varchar2(1),
|
||||||
|
status2 varchar2(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id number(10) generated by default as identity not null,
|
id number(10) generated by default as identity not null,
|
||||||
name varchar2(127) not null,
|
name varchar2(127) not null,
|
||||||
@@ -191,4 +201,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -54,6 +54,7 @@ end;
|
|||||||
$$;
|
$$;
|
||||||
drop index ix_migtest_e_basic_indextest1;
|
drop index ix_migtest_e_basic_indextest1;
|
||||||
drop index ix_migtest_e_basic_indextest5;
|
drop index ix_migtest_e_basic_indextest5;
|
||||||
|
drop index ix_migtest_quoted_status1;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id number(10) generated by default as identity not null,
|
id number(10) generated by default as identity not null,
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ 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_string1;
|
||||||
alter table migtest_e_history2 drop column obsolete_string2;
|
alter table migtest_e_history2 drop column obsolete_string2;
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
drop table "migtest_QuOtEd" cascade constraints purge;
|
||||||
drop table migtest_e_ref cascade constraints purge;
|
drop table migtest_e_ref cascade constraints purge;
|
||||||
delimiter $$
|
delimiter $$
|
||||||
declare
|
declare
|
||||||
|
|||||||
@@ -89,6 +89,16 @@ $$;
|
|||||||
drop index ix_migtest_e_basic_indextest3;
|
drop index ix_migtest_e_basic_indextest3;
|
||||||
drop index ix_migtest_e_basic_indextest6;
|
drop index ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar2(255) not null,
|
||||||
|
status1 varchar2(1),
|
||||||
|
status2 varchar2(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id number(10) generated by default as identity not null,
|
id number(10) generated by default as identity not null,
|
||||||
name varchar2(127) not null,
|
name varchar2(127) not null,
|
||||||
@@ -146,3 +156,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
-2071028889, 1.0__initial.sql
|
1374133214, 1.0__initial.sql
|
||||||
-1556388339, 1.1.sql
|
-1429935878, 1.1.sql
|
||||||
-582436324, 1.2__dropsFor_1.1.sql
|
930172034, 1.2__dropsFor_1.1.sql
|
||||||
-712179623, 1.3.sql
|
-1621367223, 1.3.sql
|
||||||
663051206, 1.4__dropsFor_1.3.sql
|
663051206, 1.4__dropsFor_1.3.sql
|
||||||
1357801733, R__oracle_only_views.sql
|
1357801733, R__oracle_only_views.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|||||||
@@ -143,6 +143,16 @@ create table migtest_e_history6 (
|
|||||||
);
|
);
|
||||||
create sequence migtest_e_history6_seq;
|
create sequence migtest_e_history6_seq;
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar2(255) not null,
|
||||||
|
status1 varchar2(1),
|
||||||
|
status2 varchar2(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id number(10) not null,
|
id number(10) not null,
|
||||||
name varchar2(127) not null,
|
name varchar2(127) not null,
|
||||||
@@ -213,4 +223,5 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index ix_table_from on "table" ("from");
|
create index ix_table_from on "table" ("from");
|
||||||
@@ -54,6 +54,7 @@ end;
|
|||||||
$$;
|
$$;
|
||||||
drop index ix_migtest_e_basic_indextest1;
|
drop index ix_migtest_e_basic_indextest1;
|
||||||
drop index ix_migtest_e_basic_indextest5;
|
drop index ix_migtest_e_basic_indextest5;
|
||||||
|
drop index ix_migtest_quoted_status1;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
create table migtest_e_user (
|
create table migtest_e_user (
|
||||||
id number(10) not null,
|
id number(10) not null,
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ 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_string1;
|
||||||
alter table migtest_e_history2 drop column obsolete_string2;
|
alter table migtest_e_history2 drop column obsolete_string2;
|
||||||
-- apply post alter
|
-- apply post alter
|
||||||
|
drop table "migtest_QuOtEd" cascade constraints purge;
|
||||||
drop table migtest_e_ref cascade constraints purge;
|
drop table migtest_e_ref cascade constraints purge;
|
||||||
delimiter $$
|
delimiter $$
|
||||||
declare
|
declare
|
||||||
|
|||||||
@@ -89,6 +89,16 @@ $$;
|
|||||||
drop index ix_migtest_e_basic_indextest3;
|
drop index ix_migtest_e_basic_indextest3;
|
||||||
drop index ix_migtest_e_basic_indextest6;
|
drop index ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar2(255) not null,
|
||||||
|
status1 varchar2(1),
|
||||||
|
status2 varchar2(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id number(10) not null,
|
id number(10) not null,
|
||||||
name varchar2(127) not null,
|
name varchar2(127) not null,
|
||||||
@@ -147,3 +157,4 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
-1110489114, 1.0__initial.sql
|
1070168506, 1.0__initial.sql
|
||||||
1800537955, 1.1.sql
|
984602561, 1.1.sql
|
||||||
-582436324, 1.2__dropsFor_1.1.sql
|
930172034, 1.2__dropsFor_1.1.sql
|
||||||
-253819510, 1.3.sql
|
-144959080, 1.3.sql
|
||||||
663051206, 1.4__dropsFor_1.3.sql
|
663051206, 1.4__dropsFor_1.3.sql
|
||||||
1357801733, R__oracle_only_views.sql
|
1357801733, R__oracle_only_views.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|||||||
@@ -127,6 +127,16 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -349,6 +359,7 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index if not exists ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index if not exists ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index if not exists ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index if not exists ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index if not exists ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index if not exists ix_table_from on "table" ("from");
|
create index if not exists ix_table_from on "table" ("from");
|
||||||
create index idxd_migtest_0 on migtest_oto_child using hash (upper(name)) where upper(name) = 'JIM';
|
create index idxd_migtest_0 on migtest_oto_child using hash (upper(name)) where upper(name) = 'JIM';
|
||||||
create index concurrently if not exists ix_migtest_oto_child_lowername_id on migtest_oto_child (lower(name),id);
|
create index concurrently if not exists ix_migtest_oto_child_lowername_id on migtest_oto_child (lower(name),id);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ 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 migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||||
drop index if exists ix_migtest_e_basic_indextest1;
|
drop index if exists ix_migtest_e_basic_indextest1;
|
||||||
drop index if exists ix_migtest_e_basic_indextest5;
|
drop index if exists ix_migtest_e_basic_indextest5;
|
||||||
|
drop index if exists ix_migtest_quoted_status1;
|
||||||
drop index if exists idxd_migtest_0;
|
drop index if exists idxd_migtest_0;
|
||||||
drop index concurrently if exists ix_migtest_oto_child_lowername_id;
|
drop index concurrently if exists ix_migtest_oto_child_lowername_id;
|
||||||
drop index if exists ix_migtest_oto_child_lowername;
|
drop index if exists ix_migtest_oto_child_lowername;
|
||||||
|
|||||||
@@ -37,5 +37,6 @@ create trigger migtest_e_history2_history_upd
|
|||||||
before update or delete on migtest_e_history2
|
before update or delete on migtest_e_history2
|
||||||
for each row execute procedure migtest_e_history2_history_version();
|
for each row execute procedure migtest_e_history2_history_version();
|
||||||
|
|
||||||
|
drop table if exists "migtest_QuOtEd" cascade;
|
||||||
drop table if exists migtest_e_ref cascade;
|
drop table if exists migtest_e_ref cascade;
|
||||||
drop sequence if exists migtest_e_ref_seq;
|
drop sequence if exists migtest_e_ref_seq;
|
||||||
@@ -17,6 +17,16 @@ alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_stat
|
|||||||
drop index if exists ix_migtest_e_basic_indextest3;
|
drop index if exists ix_migtest_e_basic_indextest3;
|
||||||
drop index if exists ix_migtest_e_basic_indextest6;
|
drop index if exists ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -187,6 +197,7 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index if not exists ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index if not exists ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index if not exists ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index if not exists ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index if not exists ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index if not exists ix_m12_otoc71 on migtest_oto_child (name);
|
create index if not exists ix_m12_otoc71 on migtest_oto_child (name);
|
||||||
create unique index if not exists uq_m12_otoc71 on migtest_oto_child (lower(name));
|
create unique index if not exists uq_m12_otoc71 on migtest_oto_child (lower(name));
|
||||||
create unique index if not exists ix_migtest_oto_master_lowername on migtest_oto_master (lower(name));
|
create unique index if not exists ix_migtest_oto_master_lowername on migtest_oto_master (lower(name));
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
-1738052304, 1.0__initial.sql
|
1014378814, 1.0__initial.sql
|
||||||
376807442, 1.1.sql
|
-2047324426, 1.1.sql
|
||||||
-1098989118, 1.2__dropsFor_1.1.sql
|
-261111052, 1.2__dropsFor_1.1.sql
|
||||||
691388965, 1.3.sql
|
1335621453, 1.3.sql
|
||||||
1729345905, 1.4__dropsFor_1.3.sql
|
1729345905, 1.4__dropsFor_1.3.sql
|
||||||
783227075, R__multi_comments.sql
|
783227075, R__multi_comments.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|||||||
@@ -127,6 +127,16 @@ create table migtest_e_history6 (
|
|||||||
constraint pk_migtest_e_history6 primary key (id)
|
constraint pk_migtest_e_history6 primary key (id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id serial not null,
|
id serial not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -349,6 +359,7 @@ alter table "table" add constraint fk_table_foreign foreign key ("foreign") refe
|
|||||||
|
|
||||||
create index if not exists ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index if not exists ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index if not exists ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index if not exists ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index if not exists ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index if not exists ix_table_from on "table" ("from");
|
create index if not exists ix_table_from on "table" ("from");
|
||||||
create index idxd_migtest_0 on migtest_oto_child using hash (upper(name)) where upper(name) = 'JIM';
|
create index idxd_migtest_0 on migtest_oto_child using hash (upper(name)) where upper(name) = 'JIM';
|
||||||
create index concurrently if not exists ix_migtest_oto_child_lowername_id on migtest_oto_child (lower(name),id);
|
create index concurrently if not exists ix_migtest_oto_child_lowername_id on migtest_oto_child (lower(name),id);
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ 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 migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
|
||||||
drop index if exists ix_migtest_e_basic_indextest1;
|
drop index if exists ix_migtest_e_basic_indextest1;
|
||||||
drop index if exists ix_migtest_e_basic_indextest5;
|
drop index if exists ix_migtest_e_basic_indextest5;
|
||||||
|
drop index if exists ix_migtest_quoted_status1;
|
||||||
drop index if exists idxd_migtest_0;
|
drop index if exists idxd_migtest_0;
|
||||||
drop index concurrently if exists ix_migtest_oto_child_lowername_id;
|
drop index concurrently if exists ix_migtest_oto_child_lowername_id;
|
||||||
drop index if exists ix_migtest_oto_child_lowername;
|
drop index if exists ix_migtest_oto_child_lowername;
|
||||||
|
|||||||
+1
@@ -37,5 +37,6 @@ create trigger migtest_e_history2_history_upd
|
|||||||
before update or delete on migtest_e_history2
|
before update or delete on migtest_e_history2
|
||||||
for each row execute procedure migtest_e_history2_history_version();
|
for each row execute procedure migtest_e_history2_history_version();
|
||||||
|
|
||||||
|
drop table if exists "migtest_QuOtEd" cascade;
|
||||||
drop table if exists migtest_e_ref cascade;
|
drop table if exists migtest_e_ref cascade;
|
||||||
drop sequence if exists migtest_e_ref_seq;
|
drop sequence if exists migtest_e_ref_seq;
|
||||||
@@ -17,6 +17,16 @@ alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_stat
|
|||||||
drop index if exists ix_migtest_e_basic_indextest3;
|
drop index if exists ix_migtest_e_basic_indextest3;
|
||||||
drop index if exists ix_migtest_e_basic_indextest6;
|
drop index if exists ix_migtest_e_basic_indextest6;
|
||||||
-- apply changes
|
-- apply changes
|
||||||
|
create table "migtest_QuOtEd" (
|
||||||
|
id varchar(255) not null,
|
||||||
|
status1 varchar(1),
|
||||||
|
status2 varchar(1),
|
||||||
|
constraint ck_migtest_quoted_status1 check ( status1 in ('N','A','I')),
|
||||||
|
constraint ck_migtest_quoted_status2 check ( status2 in ('N','A','I')),
|
||||||
|
constraint uq_migtest_quoted_status2 unique (status2),
|
||||||
|
constraint pk_migtest_quoted primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
create table migtest_e_ref (
|
create table migtest_e_ref (
|
||||||
id serial not null,
|
id serial not null,
|
||||||
name varchar(127) not null,
|
name varchar(127) not null,
|
||||||
@@ -187,6 +197,7 @@ alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign ke
|
|||||||
|
|
||||||
create index if not exists ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
create index if not exists ix_migtest_e_basic_indextest1 on migtest_e_basic (indextest1);
|
||||||
create index if not exists ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
create index if not exists ix_migtest_e_basic_indextest5 on migtest_e_basic (indextest5);
|
||||||
|
create index if not exists ix_migtest_quoted_status1 on "migtest_QuOtEd" (status1);
|
||||||
create index if not exists ix_m12_otoc71 on migtest_oto_child (name);
|
create index if not exists ix_m12_otoc71 on migtest_oto_child (name);
|
||||||
create unique index if not exists uq_m12_otoc71 on migtest_oto_child (lower(name));
|
create unique index if not exists uq_m12_otoc71 on migtest_oto_child (lower(name));
|
||||||
create unique index if not exists ix_migtest_oto_master_lowername on migtest_oto_master (lower(name));
|
create unique index if not exists ix_migtest_oto_master_lowername on migtest_oto_master (lower(name));
|
||||||
Loaded 100 of 126 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user