mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
Reference scripts
This commit is contained in:
1 parent
3e4cc3b3d6
commit
250e66819b
21 files changed
+106
-42
No files matched your search
@@ -77,7 +77,7 @@ create table migtest_e_basic (
|
|||||||
constraint ck_migtest_e_basic_status check ( status in ('N','A','I')),
|
constraint ck_migtest_e_basic_status check ( status in ('N','A','I')),
|
||||||
constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I')),
|
constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I')),
|
||||||
constraint pk_migtest_e_basic primary key (id)
|
constraint pk_migtest_e_basic primary key (id)
|
||||||
);
|
) in TSTABLES index in INDEXTS long in TSTABLES;
|
||||||
|
|
||||||
create table migtest_e_enum (
|
create table migtest_e_enum (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
@@ -90,7 +90,7 @@ create table migtest_e_history (
|
|||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
test_string varchar(255),
|
test_string varchar(255),
|
||||||
constraint pk_migtest_e_history primary key (id)
|
constraint pk_migtest_e_history primary key (id)
|
||||||
);
|
) in MAIN index in MAIN long in MAIN;
|
||||||
|
|
||||||
create table migtest_e_history2 (
|
create table migtest_e_history2 (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -87,18 +87,18 @@ create table migtest_mtm_c_migtest_mtm_m (
|
|||||||
migtest_mtm_c_id integer not null,
|
migtest_mtm_c_id integer not null,
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
constraint pk_migtest_mtm_c_migtest_mtm_m primary key (migtest_mtm_c_id,migtest_mtm_m_id)
|
constraint pk_migtest_mtm_c_migtest_mtm_m primary key (migtest_mtm_c_id,migtest_mtm_m_id)
|
||||||
);
|
) in TESTTS index in TESTTS long in TESTTS;
|
||||||
|
|
||||||
create table migtest_mtm_m_migtest_mtm_c (
|
create table migtest_mtm_m_migtest_mtm_c (
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
migtest_mtm_c_id integer not null,
|
migtest_mtm_c_id integer not null,
|
||||||
constraint pk_migtest_mtm_m_migtest_mtm_c primary key (migtest_mtm_m_id,migtest_mtm_c_id)
|
constraint pk_migtest_mtm_m_migtest_mtm_c primary key (migtest_mtm_m_id,migtest_mtm_c_id)
|
||||||
);
|
) in TSMASTER index in TSMASTER long in TSMASTER;
|
||||||
|
|
||||||
create table migtest_mtm_m_phone_numbers (
|
create table migtest_mtm_m_phone_numbers (
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
value varchar(255) not null
|
value varchar(255) not null
|
||||||
);
|
) in TSMASTER index in TSMASTER long in TSMASTER;
|
||||||
|
|
||||||
|
|
||||||
update migtest_e_basic set status = 'A' where status is null;
|
update migtest_e_basic set status = 'A' where status is null;
|
||||||
@@ -107,6 +107,7 @@ update migtest_e_basic set status = 'A' where status is null;
|
|||||||
update migtest_e_basic set status = 'N' where id = 1;
|
update migtest_e_basic set status = 'N' where id = 1;
|
||||||
|
|
||||||
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic;
|
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_E_BASIC','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
|
|
||||||
-- NOTE: table has @History - special migration may be necessary
|
-- NOTE: table has @History - special migration may be necessary
|
||||||
update migtest_e_history2 set test_string = 'unknown' where test_string is null;
|
update migtest_e_history2 set test_string = 'unknown' where test_string is null;
|
||||||
@@ -119,6 +120,8 @@ alter table migtest_e_history5 drop versioning;
|
|||||||
update migtest_e_history6 set test_number1 = 42 where test_number1 is null;
|
update migtest_e_history6 set test_number1 = 42 where test_number1 is null;
|
||||||
alter table migtest_e_history6 drop versioning;
|
alter table migtest_e_history6 drop versioning;
|
||||||
alter table "table" drop versioning;
|
alter table "table" drop versioning;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_C','TESTTS','TESTTS','TESTTS','','','','','','MOVE');
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_M','TSMASTER','TSMASTER','TSMASTER','','','','','','MOVE');
|
||||||
-- apply alter tables
|
-- apply alter tables
|
||||||
alter table "table" add column "select" varchar(255);
|
alter table "table" add column "select" varchar(255);
|
||||||
alter table migtest_ckey_detail add column one_key integer;
|
alter table migtest_ckey_detail add column one_key integer;
|
||||||
@@ -182,7 +185,7 @@ create unique index uq_migtest_e_basic_status_indextest1 on migtest_e_basic(stat
|
|||||||
create unique index uq_migtest_e_basic_name on migtest_e_basic(name) exclude null keys;
|
create unique index uq_migtest_e_basic_name on migtest_e_basic(name) exclude null keys;
|
||||||
create unique index uq_migtest_e_basic_indextest4 on migtest_e_basic(indextest4) exclude null keys;
|
create unique index uq_migtest_e_basic_indextest4 on migtest_e_basic(indextest4) exclude null keys;
|
||||||
create unique index uq_migtest_e_basic_indextest5 on migtest_e_basic(indextest5) exclude null keys;
|
create unique index uq_migtest_e_basic_indextest5 on migtest_e_basic(indextest5) exclude null keys;
|
||||||
create table migtest_e_history_history as (select * from migtest_e_history) with no data;
|
create table migtest_e_history_history as (select * from migtest_e_history) with no data in MAIN index in MAIN long in MAIN;
|
||||||
alter table migtest_e_history add versioning use history table migtest_e_history_history;
|
alter table migtest_e_history add versioning use history table migtest_e_history_history;
|
||||||
comment on column migtest_e_history.test_string is 'Column altered to long now';
|
comment on column migtest_e_history.test_string is 'Column altered to long now';
|
||||||
comment on table migtest_e_history is 'We have history now';
|
comment on table migtest_e_history is 'We have history now';
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ alter table migtest_e_history6 drop versioning;
|
|||||||
|
|
||||||
-- NOTE: table has @History - special migration may be necessary
|
-- NOTE: table has @History - special migration may be necessary
|
||||||
update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
|
update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_C','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_M','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
-- apply alter tables
|
-- apply alter tables
|
||||||
alter table migtest_e_basic alter column status drop default;
|
alter table migtest_e_basic alter column status drop default;
|
||||||
alter table migtest_e_basic alter column status drop not null;
|
alter table migtest_e_basic alter column status drop not null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
-1073246286, 1.0__initial.sql
|
-2035307143, 1.0__initial.sql
|
||||||
2043476851, 1.1.sql
|
2129080414, 1.1.sql
|
||||||
364066694, 1.2__dropsFor_1.1.sql
|
364066694, 1.2__dropsFor_1.1.sql
|
||||||
1155358918, 1.3.sql
|
1302478095, 1.3.sql
|
||||||
-1199420632, 1.4__dropsFor_1.3.sql
|
-1199420632, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ create table migtest_e_basic (
|
|||||||
constraint ck_mgtst__bsc_stts check ( status in ('N','A','I')),
|
constraint ck_mgtst__bsc_stts check ( status in ('N','A','I')),
|
||||||
constraint ck_mgtst__b_z543fg check ( status2 in ('N','A','I')),
|
constraint ck_mgtst__b_z543fg check ( status2 in ('N','A','I')),
|
||||||
constraint pk_migtest_e_basic primary key (id)
|
constraint pk_migtest_e_basic primary key (id)
|
||||||
);
|
) in TSTABLES index in INDEXTS long in TSTABLES;
|
||||||
|
|
||||||
create table migtest_e_enum (
|
create table migtest_e_enum (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
@@ -90,7 +90,7 @@ create table migtest_e_history (
|
|||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
test_string varchar(255),
|
test_string varchar(255),
|
||||||
constraint pk_migtest_e_history primary key (id)
|
constraint pk_migtest_e_history primary key (id)
|
||||||
);
|
) in MAIN index in MAIN long in MAIN;
|
||||||
|
|
||||||
create table migtest_e_history2 (
|
create table migtest_e_history2 (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -87,18 +87,18 @@ create table migtest_mtm_c_migtest_mtm_m (
|
|||||||
migtest_mtm_c_id integer not null,
|
migtest_mtm_c_id integer not null,
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
constraint pk_migtest_mtm_c_migtest_mtm_m primary key (migtest_mtm_c_id,migtest_mtm_m_id)
|
constraint pk_migtest_mtm_c_migtest_mtm_m primary key (migtest_mtm_c_id,migtest_mtm_m_id)
|
||||||
);
|
) in TESTTS index in TESTTS long in TESTTS;
|
||||||
|
|
||||||
create table migtest_mtm_m_migtest_mtm_c (
|
create table migtest_mtm_m_migtest_mtm_c (
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
migtest_mtm_c_id integer not null,
|
migtest_mtm_c_id integer not null,
|
||||||
constraint pk_migtest_mtm_m_migtest_mtm_c primary key (migtest_mtm_m_id,migtest_mtm_c_id)
|
constraint pk_migtest_mtm_m_migtest_mtm_c primary key (migtest_mtm_m_id,migtest_mtm_c_id)
|
||||||
);
|
) in TSMASTER index in TSMASTER long in TSMASTER;
|
||||||
|
|
||||||
create table migtest_mtm_m_phone_numbers (
|
create table migtest_mtm_m_phone_numbers (
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
value varchar(255) not null
|
value varchar(255) not null
|
||||||
);
|
) in TSMASTER index in TSMASTER long in TSMASTER;
|
||||||
|
|
||||||
|
|
||||||
update migtest_e_basic set status = 'A' where status is null;
|
update migtest_e_basic set status = 'A' where status is null;
|
||||||
@@ -107,6 +107,7 @@ update migtest_e_basic set status = 'A' where status is null;
|
|||||||
update migtest_e_basic set status = 'N' where id = 1;
|
update migtest_e_basic set status = 'N' where id = 1;
|
||||||
|
|
||||||
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic;
|
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_E_BASIC','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
|
|
||||||
-- NOTE: table has @History - special migration may be necessary
|
-- NOTE: table has @History - special migration may be necessary
|
||||||
update migtest_e_history2 set test_string = 'unknown' where test_string is null;
|
update migtest_e_history2 set test_string = 'unknown' where test_string is null;
|
||||||
@@ -119,6 +120,8 @@ alter table migtest_e_history5 drop versioning;
|
|||||||
update migtest_e_history6 set test_number1 = 42 where test_number1 is null;
|
update migtest_e_history6 set test_number1 = 42 where test_number1 is null;
|
||||||
alter table migtest_e_history6 drop versioning;
|
alter table migtest_e_history6 drop versioning;
|
||||||
alter table "table" drop versioning;
|
alter table "table" drop versioning;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_C','TESTTS','TESTTS','TESTTS','','','','','','MOVE');
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_M','TSMASTER','TSMASTER','TSMASTER','','','','','','MOVE');
|
||||||
-- apply alter tables
|
-- apply alter tables
|
||||||
alter table "table" add column "select" varchar(255);
|
alter table "table" add column "select" varchar(255);
|
||||||
alter table migtest_ckey_detail add column one_key integer;
|
alter table migtest_ckey_detail add column one_key integer;
|
||||||
@@ -182,7 +185,7 @@ create unique index uq_mgtst__b_ucfcne on migtest_e_basic(status,indextest1) exc
|
|||||||
create unique index uq_mgtst__bsc_nm on migtest_e_basic(name) exclude null keys;
|
create unique index uq_mgtst__bsc_nm on migtest_e_basic(name) exclude null keys;
|
||||||
create unique index uq_mgtst__b_4ayc00 on migtest_e_basic(indextest4) exclude null keys;
|
create unique index uq_mgtst__b_4ayc00 on migtest_e_basic(indextest4) exclude null keys;
|
||||||
create unique index uq_mgtst__b_4ayc01 on migtest_e_basic(indextest5) exclude null keys;
|
create unique index uq_mgtst__b_4ayc01 on migtest_e_basic(indextest5) exclude null keys;
|
||||||
create table migtest_e_history_history as (select * from migtest_e_history) with no data;
|
create table migtest_e_history_history as (select * from migtest_e_history) with no data in MAIN index in MAIN long in MAIN;
|
||||||
alter table migtest_e_history add versioning use history table migtest_e_history_history;
|
alter table migtest_e_history add versioning use history table migtest_e_history_history;
|
||||||
comment on column migtest_e_history.test_string is 'Column altered to long now';
|
comment on column migtest_e_history.test_string is 'Column altered to long now';
|
||||||
comment on table migtest_e_history is 'We have history now';
|
comment on table migtest_e_history is 'We have history now';
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ alter table migtest_e_history6 drop versioning;
|
|||||||
|
|
||||||
-- NOTE: table has @History - special migration may be necessary
|
-- NOTE: table has @History - special migration may be necessary
|
||||||
update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
|
update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_C','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_M','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
-- apply alter tables
|
-- apply alter tables
|
||||||
alter table migtest_e_basic alter column status drop default;
|
alter table migtest_e_basic alter column status drop default;
|
||||||
alter table migtest_e_basic alter column status drop not null;
|
alter table migtest_e_basic alter column status drop not null;
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
2054922533, 1.0__initial.sql
|
-867624537, 1.0__initial.sql
|
||||||
1256892738, 1.1.sql
|
-1885896768, 1.1.sql
|
||||||
364066694, 1.2__dropsFor_1.1.sql
|
364066694, 1.2__dropsFor_1.1.sql
|
||||||
1760988648, 1.3.sql
|
-29831669, 1.3.sql
|
||||||
-1199420632, 1.4__dropsFor_1.3.sql
|
-1199420632, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ create table migtest_e_basic (
|
|||||||
constraint ck_migtest_e_basic_status check ( status in ('N','A','I')),
|
constraint ck_migtest_e_basic_status check ( status in ('N','A','I')),
|
||||||
constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I')),
|
constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I')),
|
||||||
constraint pk_migtest_e_basic primary key (id)
|
constraint pk_migtest_e_basic primary key (id)
|
||||||
);
|
) in TSTABLES index in INDEXTS long in TSTABLES;
|
||||||
|
|
||||||
create table migtest_e_enum (
|
create table migtest_e_enum (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
@@ -90,7 +90,7 @@ create table migtest_e_history (
|
|||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
test_string varchar(255),
|
test_string varchar(255),
|
||||||
constraint pk_migtest_e_history primary key (id)
|
constraint pk_migtest_e_history primary key (id)
|
||||||
);
|
) in MAIN index in MAIN long in MAIN;
|
||||||
|
|
||||||
create table migtest_e_history2 (
|
create table migtest_e_history2 (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -87,18 +87,18 @@ create table migtest_mtm_c_migtest_mtm_m (
|
|||||||
migtest_mtm_c_id integer not null,
|
migtest_mtm_c_id integer not null,
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
constraint pk_migtest_mtm_c_migtest_mtm_m primary key (migtest_mtm_c_id,migtest_mtm_m_id)
|
constraint pk_migtest_mtm_c_migtest_mtm_m primary key (migtest_mtm_c_id,migtest_mtm_m_id)
|
||||||
);
|
) in TESTTS index in TESTTS long in TESTTS;
|
||||||
|
|
||||||
create table migtest_mtm_m_migtest_mtm_c (
|
create table migtest_mtm_m_migtest_mtm_c (
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
migtest_mtm_c_id integer not null,
|
migtest_mtm_c_id integer not null,
|
||||||
constraint pk_migtest_mtm_m_migtest_mtm_c primary key (migtest_mtm_m_id,migtest_mtm_c_id)
|
constraint pk_migtest_mtm_m_migtest_mtm_c primary key (migtest_mtm_m_id,migtest_mtm_c_id)
|
||||||
);
|
) in TSMASTER index in TSMASTER long in TSMASTER;
|
||||||
|
|
||||||
create table migtest_mtm_m_phone_numbers (
|
create table migtest_mtm_m_phone_numbers (
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
value varchar(255) not null
|
value varchar(255) not null
|
||||||
);
|
) in TSMASTER index in TSMASTER long in TSMASTER;
|
||||||
|
|
||||||
|
|
||||||
update migtest_e_basic set status = 'A' where status is null;
|
update migtest_e_basic set status = 'A' where status is null;
|
||||||
@@ -107,6 +107,7 @@ update migtest_e_basic set status = 'A' where status is null;
|
|||||||
update migtest_e_basic set status = 'N' where id = 1;
|
update migtest_e_basic set status = 'N' where id = 1;
|
||||||
|
|
||||||
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic;
|
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_E_BASIC','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
|
|
||||||
-- NOTE: table has @History - special migration may be necessary
|
-- NOTE: table has @History - special migration may be necessary
|
||||||
update migtest_e_history2 set test_string = 'unknown' where test_string is null;
|
update migtest_e_history2 set test_string = 'unknown' where test_string is null;
|
||||||
@@ -119,6 +120,8 @@ alter table migtest_e_history5 drop versioning;
|
|||||||
update migtest_e_history6 set test_number1 = 42 where test_number1 is null;
|
update migtest_e_history6 set test_number1 = 42 where test_number1 is null;
|
||||||
alter table migtest_e_history6 drop versioning;
|
alter table migtest_e_history6 drop versioning;
|
||||||
alter table "table" drop versioning;
|
alter table "table" drop versioning;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_C','TESTTS','TESTTS','TESTTS','','','','','','MOVE');
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_M','TSMASTER','TSMASTER','TSMASTER','','','','','','MOVE');
|
||||||
-- apply alter tables
|
-- apply alter tables
|
||||||
alter table "table" add column "select" varchar(255);
|
alter table "table" add column "select" varchar(255);
|
||||||
alter table migtest_ckey_detail add column one_key integer;
|
alter table migtest_ckey_detail add column one_key integer;
|
||||||
@@ -182,7 +185,7 @@ create unique index uq_migtest_e_basic_status_indextest1 on migtest_e_basic(stat
|
|||||||
create unique index uq_migtest_e_basic_name on migtest_e_basic(name) exclude null keys;
|
create unique index uq_migtest_e_basic_name on migtest_e_basic(name) exclude null keys;
|
||||||
create unique index uq_migtest_e_basic_indextest4 on migtest_e_basic(indextest4) exclude null keys;
|
create unique index uq_migtest_e_basic_indextest4 on migtest_e_basic(indextest4) exclude null keys;
|
||||||
create unique index uq_migtest_e_basic_indextest5 on migtest_e_basic(indextest5) exclude null keys;
|
create unique index uq_migtest_e_basic_indextest5 on migtest_e_basic(indextest5) exclude null keys;
|
||||||
create table migtest_e_history_history as (select * from migtest_e_history) with no data;
|
create table migtest_e_history_history as (select * from migtest_e_history) with no data in MAIN index in MAIN long in MAIN;
|
||||||
alter table migtest_e_history add versioning use history table migtest_e_history_history;
|
alter table migtest_e_history add versioning use history table migtest_e_history_history;
|
||||||
comment on column migtest_e_history.test_string is 'Column altered to long now';
|
comment on column migtest_e_history.test_string is 'Column altered to long now';
|
||||||
comment on table migtest_e_history is 'We have history now';
|
comment on table migtest_e_history is 'We have history now';
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ alter table migtest_e_history6 drop versioning;
|
|||||||
|
|
||||||
-- NOTE: table has @History - special migration may be necessary
|
-- NOTE: table has @History - special migration may be necessary
|
||||||
update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
|
update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_C','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_M','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
-- apply alter tables
|
-- apply alter tables
|
||||||
alter table migtest_e_basic alter column status drop default;
|
alter table migtest_e_basic alter column status drop default;
|
||||||
alter table migtest_e_basic alter column status drop not null;
|
alter table migtest_e_basic alter column status drop not null;
|
||||||
|
|||||||
+36
@@ -0,0 +1,36 @@
|
|||||||
|
|
||||||
|
delimiter $$
|
||||||
|
BEGIN
|
||||||
|
IF (NOT exists (SELECT * FROM SYSIBM.SYSTABLESPACES WHERE TBSPACE = 'TSTABLES')) THEN
|
||||||
|
EXECUTE IMMEDIATE 'CREATE TABLESPACE "TSTABLES"';
|
||||||
|
END IF;
|
||||||
|
END
|
||||||
|
$$
|
||||||
|
delimiter $$
|
||||||
|
BEGIN
|
||||||
|
IF (NOT exists (SELECT * FROM SYSIBM.SYSTABLESPACES WHERE TBSPACE = 'INDEXTS'))
|
||||||
|
THEN EXECUTE IMMEDIATE 'CREATE TABLESPACE "INDEXTS"';
|
||||||
|
END IF;
|
||||||
|
END
|
||||||
|
$$
|
||||||
|
delimiter $$
|
||||||
|
BEGIN
|
||||||
|
IF (NOT exists (SELECT * FROM SYSIBM.SYSTABLESPACES WHERE TBSPACE = 'TESTTS')) THEN
|
||||||
|
EXECUTE IMMEDIATE 'CREATE TABLESPACE "TESTTS"';
|
||||||
|
END IF;
|
||||||
|
END
|
||||||
|
$$
|
||||||
|
delimiter $$
|
||||||
|
BEGIN
|
||||||
|
IF (NOT exists (SELECT * FROM SYSIBM.SYSTABLESPACES WHERE TBSPACE = 'TSMASTER')) THEN
|
||||||
|
EXECUTE IMMEDIATE 'CREATE TABLESPACE "TSMASTER"';
|
||||||
|
END IF;
|
||||||
|
END
|
||||||
|
$$
|
||||||
|
delimiter $$
|
||||||
|
BEGIN
|
||||||
|
IF (NOT exists (SELECT * FROM SYSIBM.SYSTABLESPACES WHERE TBSPACE = 'MAIN')) THEN
|
||||||
|
EXECUTE IMMEDIATE 'CREATE TABLESPACE "MAIN"';
|
||||||
|
END IF;
|
||||||
|
END
|
||||||
|
$$
|
||||||
@@ -1,7 +1,8 @@
|
|||||||
-1519091511, 1.0__initial.sql
|
1307787475, I__create_tablespaces.sql
|
||||||
-370964456, 1.1.sql
|
-1520031543, 1.0__initial.sql
|
||||||
|
1233890256, 1.1.sql
|
||||||
364066694, 1.2__dropsFor_1.1.sql
|
364066694, 1.2__dropsFor_1.1.sql
|
||||||
591329540, 1.3.sql
|
-1775325396, 1.3.sql
|
||||||
-1199420632, 1.4__dropsFor_1.3.sql
|
-1199420632, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ create table migtest_e_basic (
|
|||||||
constraint ck_migtest_e_basic_status check ( status in ('N','A','I')),
|
constraint ck_migtest_e_basic_status check ( status in ('N','A','I')),
|
||||||
constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I')),
|
constraint ck_migtest_e_basic_status2 check ( status2 in ('N','A','I')),
|
||||||
constraint pk_migtest_e_basic primary key (id)
|
constraint pk_migtest_e_basic primary key (id)
|
||||||
);
|
) in TSTABLES index in INDEXTS long in TSTABLES;
|
||||||
|
|
||||||
create table migtest_e_enum (
|
create table migtest_e_enum (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
@@ -90,7 +90,7 @@ create table migtest_e_history (
|
|||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
test_string varchar(255),
|
test_string varchar(255),
|
||||||
constraint pk_migtest_e_history primary key (id)
|
constraint pk_migtest_e_history primary key (id)
|
||||||
);
|
) in MAIN index in MAIN long in MAIN;
|
||||||
|
|
||||||
create table migtest_e_history2 (
|
create table migtest_e_history2 (
|
||||||
id integer generated by default as identity not null,
|
id integer generated by default as identity not null,
|
||||||
|
|||||||
@@ -87,18 +87,18 @@ create table migtest_mtm_c_migtest_mtm_m (
|
|||||||
migtest_mtm_c_id integer not null,
|
migtest_mtm_c_id integer not null,
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
constraint pk_migtest_mtm_c_migtest_mtm_m primary key (migtest_mtm_c_id,migtest_mtm_m_id)
|
constraint pk_migtest_mtm_c_migtest_mtm_m primary key (migtest_mtm_c_id,migtest_mtm_m_id)
|
||||||
);
|
) in TESTTS index in TESTTS long in TESTTS;
|
||||||
|
|
||||||
create table migtest_mtm_m_migtest_mtm_c (
|
create table migtest_mtm_m_migtest_mtm_c (
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
migtest_mtm_c_id integer not null,
|
migtest_mtm_c_id integer not null,
|
||||||
constraint pk_migtest_mtm_m_migtest_mtm_c primary key (migtest_mtm_m_id,migtest_mtm_c_id)
|
constraint pk_migtest_mtm_m_migtest_mtm_c primary key (migtest_mtm_m_id,migtest_mtm_c_id)
|
||||||
);
|
) in TSMASTER index in TSMASTER long in TSMASTER;
|
||||||
|
|
||||||
create table migtest_mtm_m_phone_numbers (
|
create table migtest_mtm_m_phone_numbers (
|
||||||
migtest_mtm_m_id bigint not null,
|
migtest_mtm_m_id bigint not null,
|
||||||
value varchar(255) not null
|
value varchar(255) not null
|
||||||
);
|
) in TSMASTER index in TSMASTER long in TSMASTER;
|
||||||
|
|
||||||
|
|
||||||
update migtest_e_basic set status = 'A' where status is null;
|
update migtest_e_basic set status = 'A' where status is null;
|
||||||
@@ -107,6 +107,7 @@ update migtest_e_basic set status = 'A' where status is null;
|
|||||||
update migtest_e_basic set status = 'N' where id = 1;
|
update migtest_e_basic set status = 'N' where id = 1;
|
||||||
|
|
||||||
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic;
|
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_E_BASIC','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
|
|
||||||
-- NOTE: table has @History - special migration may be necessary
|
-- NOTE: table has @History - special migration may be necessary
|
||||||
update migtest_e_history2 set test_string = 'unknown' where test_string is null;
|
update migtest_e_history2 set test_string = 'unknown' where test_string is null;
|
||||||
@@ -119,6 +120,8 @@ alter table migtest_e_history5 drop versioning;
|
|||||||
update migtest_e_history6 set test_number1 = 42 where test_number1 is null;
|
update migtest_e_history6 set test_number1 = 42 where test_number1 is null;
|
||||||
alter table migtest_e_history6 drop versioning;
|
alter table migtest_e_history6 drop versioning;
|
||||||
alter table "table" drop versioning;
|
alter table "table" drop versioning;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_C','TESTTS','TESTTS','TESTTS','','','','','','MOVE');
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_M','TSMASTER','TSMASTER','TSMASTER','','','','','','MOVE');
|
||||||
-- apply alter tables
|
-- apply alter tables
|
||||||
alter table "table" add column "select" varchar(255);
|
alter table "table" add column "select" varchar(255);
|
||||||
alter table migtest_ckey_detail add column one_key integer;
|
alter table migtest_ckey_detail add column one_key integer;
|
||||||
@@ -182,7 +185,7 @@ create unique index uq_migtest_e_basic_status_indextest1 on migtest_e_basic(stat
|
|||||||
create unique index uq_migtest_e_basic_name on migtest_e_basic(name) exclude null keys;
|
create unique index uq_migtest_e_basic_name on migtest_e_basic(name) exclude null keys;
|
||||||
create unique index uq_migtest_e_basic_indextest4 on migtest_e_basic(indextest4) exclude null keys;
|
create unique index uq_migtest_e_basic_indextest4 on migtest_e_basic(indextest4) exclude null keys;
|
||||||
create unique index uq_migtest_e_basic_indextest5 on migtest_e_basic(indextest5) exclude null keys;
|
create unique index uq_migtest_e_basic_indextest5 on migtest_e_basic(indextest5) exclude null keys;
|
||||||
create table migtest_e_history_history as (select * from migtest_e_history) with no data;
|
create table migtest_e_history_history as (select * from migtest_e_history) with no data in MAIN index in MAIN long in MAIN;
|
||||||
alter table migtest_e_history add versioning use history table migtest_e_history_history;
|
alter table migtest_e_history add versioning use history table migtest_e_history_history;
|
||||||
comment on column migtest_e_history.test_string is 'Column altered to long now';
|
comment on column migtest_e_history.test_string is 'Column altered to long now';
|
||||||
comment on table migtest_e_history is 'We have history now';
|
comment on table migtest_e_history is 'We have history now';
|
||||||
|
|||||||
@@ -167,6 +167,8 @@ alter table migtest_e_history6 drop versioning;
|
|||||||
|
|
||||||
-- NOTE: table has @History - special migration may be necessary
|
-- NOTE: table has @History - special migration may be necessary
|
||||||
update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
|
update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_C','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
|
CALL SYSPROC.ADMIN_MOVE_TABLE(CURRENT_SCHEMA,'MIGTEST_MTM_M','USERSPACE1','USERSPACE1','USERSPACE1','','','','','','MOVE');
|
||||||
-- apply alter tables
|
-- apply alter tables
|
||||||
alter table migtest_e_basic alter column status drop default;
|
alter table migtest_e_basic alter column status drop default;
|
||||||
alter table migtest_e_basic alter column status drop not null;
|
alter table migtest_e_basic alter column status drop not null;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
-1519091511, 1.0__initial.sql
|
-1520031543, 1.0__initial.sql
|
||||||
-370964456, 1.1.sql
|
1233890256, 1.1.sql
|
||||||
364066694, 1.2__dropsFor_1.1.sql
|
364066694, 1.2__dropsFor_1.1.sql
|
||||||
591329540, 1.3.sql
|
-1775325396, 1.3.sql
|
||||||
-1199420632, 1.4__dropsFor_1.3.sql
|
-1199420632, 1.4__dropsFor_1.3.sql
|
||||||
561281075, R__order_views.sql
|
561281075, R__order_views.sql
|
||||||
|
|
||||||
+2
-2
@@ -37,7 +37,7 @@
|
|||||||
<column name="id" type="bigint" primaryKey="true"/>
|
<column name="id" type="bigint" primaryKey="true"/>
|
||||||
<column name="one_id" type="bigint" references="migtest_fk_one.id" foreignKeyName="fk_migtest_fk_set_null_one_id" foreignKeyIndex="ix_migtest_fk_set_null_one_id" foreignKeyOnDelete="SET_NULL" foreignKeyOnUpdate="RESTRICT"/>
|
<column name="one_id" type="bigint" references="migtest_fk_one.id" foreignKeyName="fk_migtest_fk_set_null_one_id" foreignKeyIndex="ix_migtest_fk_set_null_one_id" foreignKeyOnDelete="SET_NULL" foreignKeyOnUpdate="RESTRICT"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
<createTable name="migtest_e_basic" pkName="pk_migtest_e_basic">
|
<createTable name="migtest_e_basic" pkName="pk_migtest_e_basic" tablespace="db2;TSTABLES;" indexTablespace="db2;INDEXTS;" lobTablespace="db2;TSTABLES;">
|
||||||
<column name="id" type="integer" primaryKey="true"/>
|
<column name="id" type="integer" primaryKey="true"/>
|
||||||
<column name="status" type="varchar(1)" checkConstraint="check ( status in ('N','A','I'))" checkConstraintName="ck_migtest_e_basic_status"/>
|
<column name="status" type="varchar(1)" checkConstraint="check ( status in ('N','A','I'))" checkConstraintName="ck_migtest_e_basic_status"/>
|
||||||
<column name="status2" type="varchar(1)" defaultValue="'N'" notnull="true" checkConstraint="check ( status2 in ('N','A','I'))" checkConstraintName="ck_migtest_e_basic_status2"/>
|
<column name="status2" type="varchar(1)" defaultValue="'N'" notnull="true" checkConstraint="check ( status2 in ('N','A','I'))" checkConstraintName="ck_migtest_e_basic_status2"/>
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
<column name="id" type="integer" primaryKey="true"/>
|
<column name="id" type="integer" primaryKey="true"/>
|
||||||
<column name="test_status" type="varchar(1)" checkConstraint="check ( test_status in ('N','A','I'))" checkConstraintName="ck_migtest_e_enum_test_status"/>
|
<column name="test_status" type="varchar(1)" checkConstraint="check ( test_status in ('N','A','I'))" checkConstraintName="ck_migtest_e_enum_test_status"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
<createTable name="migtest_e_history" pkName="pk_migtest_e_history">
|
<createTable name="migtest_e_history" pkName="pk_migtest_e_history" tablespace="db2;MAIN;" indexTablespace="db2;MAIN;" lobTablespace="db2;MAIN;">
|
||||||
<column name="id" type="integer" primaryKey="true"/>
|
<column name="id" type="integer" primaryKey="true"/>
|
||||||
<column name="test_string" type="varchar"/>
|
<column name="test_string" type="varchar"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
|
|||||||
@@ -47,6 +47,7 @@
|
|||||||
<addUniqueConstraint constraintName="uq_migtest_e_basic_name" tableName="migtest_e_basic" columnNames="name" oneToOne="false" nullableColumns="name"/>
|
<addUniqueConstraint constraintName="uq_migtest_e_basic_name" tableName="migtest_e_basic" columnNames="name" oneToOne="false" nullableColumns="name"/>
|
||||||
<addUniqueConstraint constraintName="uq_migtest_e_basic_indextest4" tableName="migtest_e_basic" columnNames="indextest4" oneToOne="false" nullableColumns="indextest4"/>
|
<addUniqueConstraint constraintName="uq_migtest_e_basic_indextest4" tableName="migtest_e_basic" columnNames="indextest4" oneToOne="false" nullableColumns="indextest4"/>
|
||||||
<addUniqueConstraint constraintName="uq_migtest_e_basic_indextest5" tableName="migtest_e_basic" columnNames="indextest5" oneToOne="false" nullableColumns="indextest5"/>
|
<addUniqueConstraint constraintName="uq_migtest_e_basic_indextest5" tableName="migtest_e_basic" columnNames="indextest5" oneToOne="false" nullableColumns="indextest5"/>
|
||||||
|
<alterTable name="migtest_e_basic" tablespace="$TABLESPACE_DEFAULT" indexTablespace="$TABLESPACE_DEFAULT" lobTablespace="$TABLESPACE_DEFAULT"/>
|
||||||
<alterColumn columnName="test_status" tableName="migtest_e_enum" dropCheckConstraint="ck_migtest_e_enum_test_status"/>
|
<alterColumn columnName="test_status" tableName="migtest_e_enum" dropCheckConstraint="ck_migtest_e_enum_test_status"/>
|
||||||
<addHistoryTable baseTable="migtest_e_history"/>
|
<addHistoryTable baseTable="migtest_e_history"/>
|
||||||
<alterColumn columnName="test_string" tableName="migtest_e_history" type="bigint" currentType="varchar" currentNotnull="false" comment="Column altered to long now">
|
<alterColumn columnName="test_string" tableName="migtest_e_history" type="bigint" currentType="varchar" currentNotnull="false" comment="Column altered to long now">
|
||||||
@@ -79,19 +80,21 @@
|
|||||||
<createTable name="migtest_e_user" pkName="pk_migtest_e_user">
|
<createTable name="migtest_e_user" pkName="pk_migtest_e_user">
|
||||||
<column name="id" type="integer" primaryKey="true"/>
|
<column name="id" type="integer" primaryKey="true"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
<createTable name="migtest_mtm_c_migtest_mtm_m" pkName="pk_migtest_mtm_c_migtest_mtm_m">
|
<alterTable name="migtest_mtm_c" tablespace="db2;TESTTS;" indexTablespace="db2;TESTTS;" lobTablespace="db2;TESTTS;"/>
|
||||||
|
<createTable name="migtest_mtm_c_migtest_mtm_m" pkName="pk_migtest_mtm_c_migtest_mtm_m" tablespace="db2;TESTTS;" indexTablespace="db2;TESTTS;" lobTablespace="db2;TESTTS;">
|
||||||
<column name="migtest_mtm_c_id" type="integer" notnull="true" primaryKey="true"/>
|
<column name="migtest_mtm_c_id" type="integer" notnull="true" primaryKey="true"/>
|
||||||
<column name="migtest_mtm_m_id" type="bigint" notnull="true" primaryKey="true"/>
|
<column name="migtest_mtm_m_id" type="bigint" notnull="true" primaryKey="true"/>
|
||||||
<foreignKey name="fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c" columnNames="migtest_mtm_c_id" refColumnNames="id" refTableName="migtest_mtm_c" indexName="ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c"/>
|
<foreignKey name="fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c" columnNames="migtest_mtm_c_id" refColumnNames="id" refTableName="migtest_mtm_c" indexName="ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c"/>
|
||||||
<foreignKey name="fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m" columnNames="migtest_mtm_m_id" refColumnNames="id" refTableName="migtest_mtm_m" indexName="ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m"/>
|
<foreignKey name="fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m" columnNames="migtest_mtm_m_id" refColumnNames="id" refTableName="migtest_mtm_m" indexName="ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_m"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
<createTable name="migtest_mtm_m_migtest_mtm_c" pkName="pk_migtest_mtm_m_migtest_mtm_c">
|
<alterTable name="migtest_mtm_m" tablespace="db2;TSMASTER;" indexTablespace="db2;TSMASTER;" lobTablespace="db2;TSMASTER;"/>
|
||||||
|
<createTable name="migtest_mtm_m_migtest_mtm_c" pkName="pk_migtest_mtm_m_migtest_mtm_c" tablespace="db2;TSMASTER;" indexTablespace="db2;TSMASTER;" lobTablespace="db2;TSMASTER;">
|
||||||
<column name="migtest_mtm_m_id" type="bigint" notnull="true" primaryKey="true"/>
|
<column name="migtest_mtm_m_id" type="bigint" notnull="true" primaryKey="true"/>
|
||||||
<column name="migtest_mtm_c_id" type="integer" notnull="true" primaryKey="true"/>
|
<column name="migtest_mtm_c_id" type="integer" notnull="true" primaryKey="true"/>
|
||||||
<foreignKey name="fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m" columnNames="migtest_mtm_m_id" refColumnNames="id" refTableName="migtest_mtm_m" indexName="ix_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m"/>
|
<foreignKey name="fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m" columnNames="migtest_mtm_m_id" refColumnNames="id" refTableName="migtest_mtm_m" indexName="ix_migtest_mtm_m_migtest_mtm_c_migtest_mtm_m"/>
|
||||||
<foreignKey name="fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_c" columnNames="migtest_mtm_c_id" refColumnNames="id" refTableName="migtest_mtm_c" indexName="ix_migtest_mtm_m_migtest_mtm_c_migtest_mtm_c"/>
|
<foreignKey name="fk_migtest_mtm_m_migtest_mtm_c_migtest_mtm_c" columnNames="migtest_mtm_c_id" refColumnNames="id" refTableName="migtest_mtm_c" indexName="ix_migtest_mtm_m_migtest_mtm_c_migtest_mtm_c"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
<createTable name="migtest_mtm_m_phone_numbers" pkName="pk_migtest_mtm_m_phone_numbers">
|
<createTable name="migtest_mtm_m_phone_numbers" pkName="pk_migtest_mtm_m_phone_numbers" tablespace="db2;TSMASTER;" indexTablespace="db2;TSMASTER;" lobTablespace="db2;TSMASTER;">
|
||||||
<column name="migtest_mtm_m_id" type="bigint" notnull="true" references="migtest_mtm_m.id" foreignKeyName="fk_migtest_mtm_m_phone_numbers_migtest_mtm_m_id" foreignKeyIndex="ix_migtest_mtm_m_phone_numbers_migtest_mtm_m_id"/>
|
<column name="migtest_mtm_m_id" type="bigint" notnull="true" references="migtest_mtm_m.id" foreignKeyName="fk_migtest_mtm_m_phone_numbers_migtest_mtm_m_id" foreignKeyIndex="ix_migtest_mtm_m_phone_numbers_migtest_mtm_m_id"/>
|
||||||
<column name="value" type="varchar" notnull="true"/>
|
<column name="value" type="varchar" notnull="true"/>
|
||||||
</createTable>
|
</createTable>
|
||||||
|
|||||||
@@ -41,6 +41,8 @@
|
|||||||
<uniqueConstraint name="uq_migtest_e_ref_name" columnNames="name" oneToOne="false" nullableColumns=""/>
|
<uniqueConstraint name="uq_migtest_e_ref_name" columnNames="name" oneToOne="false" nullableColumns=""/>
|
||||||
</createTable>
|
</createTable>
|
||||||
<alterColumn columnName=""index"" tableName=""table"" withHistory="true" comment="this is a comment"/>
|
<alterColumn columnName=""index"" tableName=""table"" withHistory="true" comment="this is a comment"/>
|
||||||
|
<alterTable name="migtest_mtm_c" tablespace="$TABLESPACE_DEFAULT" indexTablespace="$TABLESPACE_DEFAULT" lobTablespace="$TABLESPACE_DEFAULT"/>
|
||||||
|
<alterTable name="migtest_mtm_m" tablespace="$TABLESPACE_DEFAULT" indexTablespace="$TABLESPACE_DEFAULT" lobTablespace="$TABLESPACE_DEFAULT"/>
|
||||||
<addUniqueConstraint constraintName="uq_m12_otoc72" tableName="migtest_oto_child" columnNames="name" oneToOne="false" nullableColumns="name" platforms="MYSQL"/>
|
<addUniqueConstraint constraintName="uq_m12_otoc72" tableName="migtest_oto_child" columnNames="name" oneToOne="false" nullableColumns="name" platforms="MYSQL"/>
|
||||||
<addUniqueConstraint constraintName="uq_migtest_oto_master_name" tableName="migtest_oto_master" columnNames="name" oneToOne="false" nullableColumns="name" platforms="MYSQL"/>
|
<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"/>
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
ebean.test.platform=db2
|
ebean.test.platform=db2
|
||||||
ebean.test.dbName=unit
|
ebean.test.dbName=unit
|
||||||
ebean.test.dbPassword=unit
|
# we need admin user to call the procedure SYSPROC.ADMIN_MOVE_TABLE
|
||||||
|
ebean.test.username=admin
|
||||||
|
ebean.test.password=admin
|
||||||
datasource.default=db2-11
|
datasource.default=db2-11
|
||||||
ebean.db2-11.databasePlatformName=db2luw
|
ebean.db2-11.databasePlatformName=db2luw
|
||||||
Reference in new issue
Block a user