diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.0__initial.sql
index 281eb4cd7..399008e81 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.0__initial.sql
@@ -53,6 +53,7 @@ create table migtest_e_basic (
description String,
description_file blob,
json_list String,
+ a_lob String default 'X',
some_date DateTime,
old_boolean UInt8 default 0,
old_boolean2 UInt8,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.1.sql
index eef3c8083..8031d4b61 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.1.sql
@@ -46,6 +46,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 String;
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 set null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob set null;
alter table migtest_e_basic alter column user_id set null;
alter table migtest_e_basic add column new_string_field String default 'foo''bar';
alter table migtest_e_basic add column new_boolean_field UInt8 default 1;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.3.sql
index 523858c49..1d1e765bc 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/1.3.sql
@@ -17,6 +17,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- NOTE: table has @History - special migration may be necessary
@@ -27,6 +29,9 @@ alter table migtest_e_basic alter column status set null;
alter table migtest_e_basic alter column status2 String;
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob String;
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/idx_clickhouse.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/idx_clickhouse.migrations
index 221f6c8a5..e9f16f1b3 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/idx_clickhouse.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/clickhouse/idx_clickhouse.migrations
@@ -1,6 +1,6 @@
-637643590, 1.0__initial.sql
--1102375855, 1.1.sql
+-1091512932, 1.0__initial.sql
+308282323, 1.1.sql
1279151426, 1.2__dropsFor_1.1.sql
-581928632, 1.3.sql
+1630693278, 1.3.sql
80209848, 1.4__dropsFor_1.3.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.0__initial.sql
index 40e0a4d56..23cb015c1 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file bytea,
json_list json,
+ a_lob varchar(255) default 'X' not null,
some_date timestamptz,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.1.sql
index 11933d07c..01d009c38 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.1.sql
@@ -53,6 +53,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 type varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 drop not null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob drop not null;
alter table migtest_e_basic alter column user_id drop not null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.3.sql
index fa5bd5461..510820e7b 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- NOTE: table has @History - special migration may be necessary
@@ -37,6 +39,9 @@ alter table migtest_e_basic alter column status drop not null;
alter table migtest_e_basic alter column status2 type varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob type varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file bytea;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/idx_cockroach.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/idx_cockroach.migrations
index 0475a36ff..24af9d68d 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/idx_cockroach.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/cockroach/idx_cockroach.migrations
@@ -1,7 +1,7 @@
-603148324, 1.0__initial.sql
-1109849447, 1.1.sql
+150261101, 1.0__initial.sql
+-968104039, 1.1.sql
240919209, 1.2__dropsFor_1.1.sql
-612721597, 1.3.sql
+-430000356, 1.3.sql
-820814009, 1.4__dropsFor_1.3.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.0__initial.sql
index 1ca2697d3..275ca73f2 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.0__initial.sql
@@ -61,7 +61,8 @@ create table migtest_e_basic (
name varchar(127),
description varchar(127),
description_file blob(64M),
- json_list clob,
+ json_list clob(16K) inline length 500 compact,
+ a_lob clob(16K) inline length 500 not logged default 'X' not null,
some_date timestamp,
old_boolean smallint default 0 default false not null,
old_boolean2 smallint default 0,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.1.sql
index 01697ee76..87f58d773 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.1.sql
@@ -130,6 +130,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 set data type varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 drop not null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob drop not null;
alter table migtest_e_basic alter column user_id drop not null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field smallint default 0 default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.3.sql
index 496864267..6348b6a83 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/1.3.sql
@@ -157,6 +157,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
alter table migtest_e_history2 drop versioning;
alter table migtest_e_history3 drop versioning;
@@ -173,6 +175,11 @@ alter table migtest_e_basic alter column status drop not null;
alter table migtest_e_basic alter column status2 set data type varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob set data type clob(16K);
+alter table migtest_e_basic alter column a_lob set inline length 500;
+-- ignored options for migtest_e_basic.a_lob: compact=true, logged=true;
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob(64M);
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/idx_db2.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/idx_db2.migrations
index 7a334c8cb..a7267be73 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/idx_db2.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2fori/idx_db2.migrations
@@ -1,7 +1,7 @@
--789856884, 1.0__initial.sql
-234392641, 1.1.sql
+2013908385, 1.0__initial.sql
+-1221819499, 1.1.sql
364066694, 1.2__dropsFor_1.1.sql
-456341738, 1.3.sql
+-1022780902, 1.3.sql
-1199420632, 1.4__dropsFor_1.3.sql
-133543359, R__db2_explain_tables.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.0__initial.sql
index fc27e02d1..7dd236b28 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.0__initial.sql
@@ -61,7 +61,8 @@ create table migtest_e_basic (
name varchar(127),
description varchar(127),
description_file blob(64M),
- json_list clob,
+ json_list clob(16K) inline length 500 compact,
+ a_lob clob(16K) inline length 500 not logged default 'X' not null,
some_date timestamp,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.1.sql
index b1b1e5951..a21f988a8 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.1.sql
@@ -130,6 +130,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 set data type varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 drop not null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob drop not null;
alter table migtest_e_basic alter column user_id drop not null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.3.sql
index 46a830ab8..25e599457 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/1.3.sql
@@ -157,6 +157,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
alter table migtest_e_history2 drop versioning;
alter table migtest_e_history3 drop versioning;
@@ -173,6 +175,11 @@ alter table migtest_e_basic alter column status drop not null;
alter table migtest_e_basic alter column status2 set data type varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob set data type clob(16K);
+alter table migtest_e_basic alter column a_lob set inline length 500;
+-- ignored options for migtest_e_basic.a_lob: compact=true, logged=true;
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob(64M);
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/idx_db2.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/idx_db2.migrations
index de9f561ab..8da4ed3e3 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/idx_db2.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2legacy/idx_db2.migrations
@@ -1,7 +1,7 @@
-1258752439, 1.0__initial.sql
-1416632883, 1.1.sql
+-1312137506, 1.0__initial.sql
+-1707845451, 1.1.sql
364066694, 1.2__dropsFor_1.1.sql
--355648343, 1.3.sql
+-1682746660, 1.3.sql
-1199420632, 1.4__dropsFor_1.3.sql
-133543359, R__db2_explain_tables.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.0__initial.sql
index ac9dd8adc..6ab795ed4 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.0__initial.sql
@@ -61,7 +61,8 @@ create table migtest_e_basic (
name varchar(127),
description varchar(127),
description_file blob(64M),
- json_list clob,
+ json_list clob(16K) inline length 500 compact,
+ a_lob clob(16K) inline length 500 not logged default 'X' not null,
some_date timestamp,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.1.sql
index d9ffdfb28..ad1135935 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.1.sql
@@ -130,6 +130,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 set data type varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 drop not null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob drop not null;
alter table migtest_e_basic alter column user_id drop not null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.3.sql
index 8769202e5..d25af10f8 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/1.3.sql
@@ -157,6 +157,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
alter table migtest_e_history2 drop versioning;
alter table migtest_e_history3 drop versioning;
@@ -173,6 +175,11 @@ alter table migtest_e_basic alter column status drop not null;
alter table migtest_e_basic alter column status2 set data type varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob set data type clob(16K);
+alter table migtest_e_basic alter column a_lob set inline length 500;
+-- ignored options for migtest_e_basic.a_lob: compact=true, logged=true;
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob(64M);
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/idx_db2.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/idx_db2.migrations
index 9b9aa6397..f7de818a0 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/idx_db2.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2luw/idx_db2.migrations
@@ -1,8 +1,8 @@
-1602289007, I__create_tablespaces.sql
-1571160950, 1.0__initial.sql
--698103775, 1.1.sql
+1956152763, 1.0__initial.sql
+-734701228, 1.1.sql
364066694, 1.2__dropsFor_1.1.sql
--1759761341, 1.3.sql
+-749133216, 1.3.sql
-1199420632, 1.4__dropsFor_1.3.sql
-133543359, R__db2_explain_tables.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.0__initial.sql
index ac9dd8adc..6ab795ed4 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.0__initial.sql
@@ -61,7 +61,8 @@ create table migtest_e_basic (
name varchar(127),
description varchar(127),
description_file blob(64M),
- json_list clob,
+ json_list clob(16K) inline length 500 compact,
+ a_lob clob(16K) inline length 500 not logged default 'X' not null,
some_date timestamp,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.1.sql
index d9ffdfb28..ad1135935 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.1.sql
@@ -130,6 +130,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 set data type varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 drop not null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob drop not null;
alter table migtest_e_basic alter column user_id drop not null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.3.sql
index 8769202e5..d25af10f8 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/1.3.sql
@@ -157,6 +157,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
alter table migtest_e_history2 drop versioning;
alter table migtest_e_history3 drop versioning;
@@ -173,6 +175,11 @@ alter table migtest_e_basic alter column status drop not null;
alter table migtest_e_basic alter column status2 set data type varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob set data type clob(16K);
+alter table migtest_e_basic alter column a_lob set inline length 500;
+-- ignored options for migtest_e_basic.a_lob: compact=true, logged=true;
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob(64M);
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/idx_db2.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/idx_db2.migrations
index 30451f9df..3a30a057c 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/idx_db2.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/db2zos/idx_db2.migrations
@@ -1,7 +1,7 @@
-1571160950, 1.0__initial.sql
--698103775, 1.1.sql
+1956152763, 1.0__initial.sql
+-734701228, 1.1.sql
364066694, 1.2__dropsFor_1.1.sql
--1759761341, 1.3.sql
+-749133216, 1.3.sql
-1199420632, 1.4__dropsFor_1.3.sql
-133543359, R__db2_explain_tables.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.0__initial.sql
index 05980329b..262ebd5ff 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file blob,
json_list clob,
+ a_lob varchar(255) default 'X' not null,
some_date timestamp,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.1.sql
index 4397ca096..59709f02d 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.1.sql
@@ -53,6 +53,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 set null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob set null;
alter table migtest_e_basic alter column user_id set null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.3.sql
index 9b70e9ce7..cb972294f 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/generic/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- NOTE: table has @History - special migration may be necessary
@@ -37,6 +39,9 @@ alter table migtest_e_basic alter column status set null;
alter table migtest_e_basic alter column status2 varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/generic/idx_generic.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/generic/idx_generic.migrations
index 26a43f21e..24d932206 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/generic/idx_generic.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/generic/idx_generic.migrations
@@ -1,6 +1,6 @@
-656937451, 1.0__initial.sql
--905429129, 1.1.sql
+2034298647, 1.0__initial.sql
+294462857, 1.1.sql
1279151426, 1.2__dropsFor_1.1.sql
-110210997, 1.3.sql
+465616489, 1.3.sql
80209848, 1.4__dropsFor_1.3.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.0__initial.sql
index 73d88bde7..0bf405740 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file blob,
json_list clob,
+ a_lob varchar(255) default 'X' not null,
some_date timestamp,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.1.sql
index a26867c07..6b9679661 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.1.sql
@@ -63,6 +63,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 set null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob set null;
alter table migtest_e_basic alter column user_id set null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.3.sql
index 2b911cdd1..e10ccf4e3 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/h2/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
drop trigger migtest_e_history2_history_upd;
drop view migtest_e_history2_with_history;
@@ -45,6 +47,9 @@ alter table migtest_e_basic alter column status set null;
alter table migtest_e_basic alter column status2 varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/h2/idx_h2.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/h2/idx_h2.migrations
index d0397ab10..9d9acbb8e 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/h2/idx_h2.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/h2/idx_h2.migrations
@@ -1,7 +1,7 @@
-383687789, 1.0__initial.sql
--475634933, 1.1.sql
+2132375128, 1.0__initial.sql
+393141788, 1.1.sql
-1366392410, 1.2__dropsFor_1.1.sql
--323346059, 1.3.sql
+-1336073109, 1.3.sql
-1382108238, 1.4__dropsFor_1.3.sql
783227075, R__multi_comments.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.0__initial.sql
index e97e1d99e..6c528f6ce 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.0__initial.sql
@@ -62,6 +62,7 @@ create column table migtest_e_basic (
description nvarchar(127),
description_file blob,
json_list nclob,
+ a_lob nvarchar(255) default 'X' not null,
some_date timestamp,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.1.sql
index ba37717eb..dd18de917 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.1.sql
@@ -97,6 +97,7 @@ alter table migtest_ckey_detail add (one_key integer,
alter table migtest_ckey_parent add (assoc_id integer);
alter table migtest_e_basic alter (status nvarchar(1) default 'A' not null,
status2 nvarchar(127) default null,
+ a_lob nvarchar(255) default null,
user_id integer);
alter table migtest_e_basic add (new_string_field nvarchar(255) default 'foo''bar' not null,
new_boolean_field boolean default true not null,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.3.sql
index 15a9882c9..43ea9ef1d 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/hana/1.3.sql
@@ -87,6 +87,8 @@ create column table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
alter table migtest_e_history2 drop system versioning;
alter table migtest_e_history3 drop system versioning;
@@ -99,6 +101,7 @@ update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
alter table migtest_e_basic alter (status nvarchar(1) default null,
status2 nclob not null);
alter table migtest_e_basic alter (status2 nvarchar(1) default 'N' not null,
+ a_lob nvarchar(255) default 'X' not null,
user_id integer default 23 not null);
alter table migtest_e_basic add (description_file blob,
old_boolean boolean default false not null,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/hana/idx_hana.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/hana/idx_hana.migrations
index b453e1dba..78e20a03f 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/hana/idx_hana.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/hana/idx_hana.migrations
@@ -1,8 +1,8 @@
-745347271, I__create_procs.sql
--1333495553, 1.0__initial.sql
--1990555725, 1.1.sql
+-1191817607, 1.0__initial.sql
+975653326, 1.1.sql
197547825, 1.2__dropsFor_1.1.sql
-1338960395, 1.3.sql
+-98538062, 1.3.sql
1812245353, 1.4__dropsFor_1.3.sql
1906063401, R__order_views_hana.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.0__initial.sql
index 8c614a074..e9edea850 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file blob,
json_list clob,
+ a_lob varchar(255) default 'X' not null,
some_date timestamp,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.1.sql
index 0d1f86821..f5c26a888 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.1.sql
@@ -53,6 +53,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 set null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob set null;
alter table migtest_e_basic alter column user_id set null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.3.sql
index b3adec42a..a997ec73a 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- NOTE: table has @History - special migration may be necessary
@@ -37,6 +39,9 @@ alter table migtest_e_basic alter column status set null;
alter table migtest_e_basic alter column status2 varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/idx_hsqldb.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/idx_hsqldb.migrations
index 35d4ee72b..cb5d8ea27 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/idx_hsqldb.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/hsqldb/idx_hsqldb.migrations
@@ -1,7 +1,7 @@
--1277023109, 1.0__initial.sql
--1664513570, 1.1.sql
+614593077, 1.0__initial.sql
+-788233032, 1.1.sql
-300925212, 1.2__dropsFor_1.1.sql
--612892741, 1.3.sql
+121126259, 1.3.sql
-972999284, 1.4__dropsFor_1.3.sql
861001272, R__order_views_hsqldb.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.0__initial.sql
index 9cd085d3e..9b0587dc3 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file longblob,
json_list json,
+ a_lob varchar(255) default 'X' not null,
some_date datetime(6),
old_boolean tinyint(1) default 0 not null,
old_boolean2 tinyint(1),
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.1.sql
index 5068f4608..eb8551ab3 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.1.sql
@@ -48,6 +48,7 @@ alter table migtest_ckey_detail add column two_key varchar(127);
alter table migtest_ckey_parent add column assoc_id integer;
alter table migtest_e_basic modify status varchar(1) not null default 'A';
alter table migtest_e_basic modify status2 varchar(127);
+alter table migtest_e_basic modify a_lob varchar(255);
alter table migtest_e_basic modify user_id integer;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field tinyint(1) default 1 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.3.sql
index 86d0e6528..f0c10c5ed 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/1.3.sql
@@ -24,6 +24,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
SET @@system_versioning_alter_history = 1;
@@ -32,6 +34,7 @@ update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
-- apply alter tables
alter table migtest_e_basic modify status varchar(1);
alter table migtest_e_basic modify status2 varchar(1) not null default 'N';
+alter table migtest_e_basic modify a_lob varchar(255) not null default 'X';
alter table migtest_e_basic modify user_id integer not null default 23;
alter table migtest_e_basic add column description_file longblob;
alter table migtest_e_basic add column old_boolean tinyint(1) default 0 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/idx_mariadb.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/idx_mariadb.migrations
index 03a69086a..400a152ee 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/idx_mariadb.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb-noprocs/idx_mariadb.migrations
@@ -1,7 +1,7 @@
-853074400, 1.0__initial.sql
--1901679107, 1.1.sql
+1992643861, 1.0__initial.sql
+-1677772226, 1.1.sql
-828985759, 1.2__dropsFor_1.1.sql
-903264949, 1.3.sql
+-1470028617, 1.3.sql
-446860935, 1.4__dropsFor_1.3.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.0__initial.sql
index 9cd085d3e..9b0587dc3 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file longblob,
json_list json,
+ a_lob varchar(255) default 'X' not null,
some_date datetime(6),
old_boolean tinyint(1) default 0 not null,
old_boolean2 tinyint(1),
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.1.sql
index 5068f4608..eb8551ab3 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.1.sql
@@ -48,6 +48,7 @@ alter table migtest_ckey_detail add column two_key varchar(127);
alter table migtest_ckey_parent add column assoc_id integer;
alter table migtest_e_basic modify status varchar(1) not null default 'A';
alter table migtest_e_basic modify status2 varchar(127);
+alter table migtest_e_basic modify a_lob varchar(255);
alter table migtest_e_basic modify user_id integer;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field tinyint(1) default 1 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.3.sql
index 86d0e6528..f0c10c5ed 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/1.3.sql
@@ -24,6 +24,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
SET @@system_versioning_alter_history = 1;
@@ -32,6 +34,7 @@ update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
-- apply alter tables
alter table migtest_e_basic modify status varchar(1);
alter table migtest_e_basic modify status2 varchar(1) not null default 'N';
+alter table migtest_e_basic modify a_lob varchar(255) not null default 'X';
alter table migtest_e_basic modify user_id integer not null default 23;
alter table migtest_e_basic add column description_file longblob;
alter table migtest_e_basic add column old_boolean tinyint(1) default 0 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/idx_mariadb.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/idx_mariadb.migrations
index cfedd4987..1d88de14f 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/idx_mariadb.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mariadb/idx_mariadb.migrations
@@ -1,8 +1,8 @@
1835064798, I__create_procs.sql
-853074400, 1.0__initial.sql
--1901679107, 1.1.sql
+1992643861, 1.0__initial.sql
+-1677772226, 1.1.sql
2123392915, 1.2__dropsFor_1.1.sql
-903264949, 1.3.sql
+-1470028617, 1.3.sql
-692020559, 1.4__dropsFor_1.3.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.0__initial.model.xml b/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.0__initial.model.xml
index aabb55dbd..4b89b6603 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.0__initial.model.xml
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.0__initial.model.xml
@@ -44,7 +44,8 @@
-
+
+
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.1.model.xml b/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.1.model.xml
index 0a2b63c9c..6c5967478 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.1.model.xml
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.1.model.xml
@@ -24,6 +24,7 @@
-- rename all collisions
+
insert into migtest_e_user (id) select distinct user_id from migtest_e_basic
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.3.model.xml b/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.3.model.xml
index d607a5438..1e0544bbc 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.3.model.xml
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/model/1.3.model.xml
@@ -9,6 +9,7 @@
+
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.0__initial.sql
index e35516013..d7110e23e 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file longblob,
json_list json,
+ a_lob varchar(255) default 'X' not null,
some_date datetime(6),
old_boolean tinyint(1) default 0 not null,
old_boolean2 tinyint(1),
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.1.sql
index 01f05b8c1..b006574e9 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.1.sql
@@ -62,6 +62,7 @@ alter table migtest_ckey_detail add column two_key varchar(127);
alter table migtest_ckey_parent add column assoc_id integer;
alter table migtest_e_basic modify status varchar(1) not null default 'A';
alter table migtest_e_basic modify status2 varchar(127);
+alter table migtest_e_basic modify a_lob varchar(255);
alter table migtest_e_basic modify user_id integer;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field tinyint(1) default 1 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.3.sql
index 95c5ae773..611437b14 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/1.3.sql
@@ -24,6 +24,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
drop trigger migtest_e_history2_history_upd;
drop trigger migtest_e_history2_history_del;
@@ -43,6 +45,7 @@ update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
-- apply alter tables
alter table migtest_e_basic modify status varchar(1);
alter table migtest_e_basic modify status2 varchar(1) not null default 'N';
+alter table migtest_e_basic modify a_lob varchar(255) not null default 'X';
alter table migtest_e_basic modify user_id integer not null default 23;
alter table migtest_e_basic add column description_file longblob;
alter table migtest_e_basic add column old_boolean tinyint(1) default 0 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/idx_mysql.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/idx_mysql.migrations
index 73b3fdce9..1cc1f5865 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/idx_mysql.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql/idx_mysql.migrations
@@ -1,8 +1,8 @@
1835064798, I__create_procs.sql
--1579197660, 1.0__initial.sql
--882132850, 1.1.sql
+1531575623, 1.0__initial.sql
+418413355, 1.1.sql
-1332434945, 1.2__dropsFor_1.1.sql
--1085730419, 1.3.sql
+-105506677, 1.3.sql
379252952, 1.4__dropsFor_1.3.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.0__initial.sql
index c295af420..f3da85ec0 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file longblob,
json_list json,
+ a_lob varchar(255) default 'X' not null,
some_date datetime,
old_boolean tinyint(1) default 0 not null,
old_boolean2 tinyint(1),
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.1.sql
index 01f05b8c1..b006574e9 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.1.sql
@@ -62,6 +62,7 @@ alter table migtest_ckey_detail add column two_key varchar(127);
alter table migtest_ckey_parent add column assoc_id integer;
alter table migtest_e_basic modify status varchar(1) not null default 'A';
alter table migtest_e_basic modify status2 varchar(127);
+alter table migtest_e_basic modify a_lob varchar(255);
alter table migtest_e_basic modify user_id integer;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field tinyint(1) default 1 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.3.sql
index 95c5ae773..611437b14 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/1.3.sql
@@ -24,6 +24,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
drop trigger migtest_e_history2_history_upd;
drop trigger migtest_e_history2_history_del;
@@ -43,6 +45,7 @@ update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
-- apply alter tables
alter table migtest_e_basic modify status varchar(1);
alter table migtest_e_basic modify status2 varchar(1) not null default 'N';
+alter table migtest_e_basic modify a_lob varchar(255) not null default 'X';
alter table migtest_e_basic modify user_id integer not null default 23;
alter table migtest_e_basic add column description_file longblob;
alter table migtest_e_basic add column old_boolean tinyint(1) default 0 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/idx_mysql.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/idx_mysql.migrations
index 80ddc7bb3..6c192bb8e 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/idx_mysql.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/mysql55/idx_mysql.migrations
@@ -1,8 +1,8 @@
1835064798, I__create_procs.sql
--674145003, 1.0__initial.sql
--882132850, 1.1.sql
+1425786329, 1.0__initial.sql
+418413355, 1.1.sql
-1332434945, 1.2__dropsFor_1.1.sql
--1085730419, 1.3.sql
+-105506677, 1.3.sql
379252952, 1.4__dropsFor_1.3.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.0__initial.sql
index ca9aa8324..568e5bb21 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file blob,
json_list clob,
+ a_lob varchar(255) default 'X' not null,
some_date timestamp,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.1.sql
index c7bf4e1f3..b618a9587 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.1.sql
@@ -68,6 +68,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 set null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob set null;
alter table migtest_e_basic alter column user_id set null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.3.sql
index 8c28ad2ad..7362489e6 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
drop trigger migtest_e_history2_history_upd;
drop trigger migtest_e_history2_history_del;
@@ -49,6 +51,9 @@ alter table migtest_e_basic alter column status set null;
alter table migtest_e_basic alter column status2 varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/idx_nuodb.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/idx_nuodb.migrations
index 5bef73fc0..d3d0fd96b 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/idx_nuodb.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/nuodb/idx_nuodb.migrations
@@ -1,7 +1,7 @@
--1193425379, 1.0__initial.sql
--1144238347, 1.1.sql
+1842042513, 1.0__initial.sql
+-1628340454, 1.1.sql
-424253630, 1.2__dropsFor_1.1.sql
--270701977, 1.3.sql
+-1988156517, 1.3.sql
-1189704269, 1.4__dropsFor_1.3.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.0__initial.sql
index 5c34f821f..528727be2 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar2(127),
description_file blob,
json_list clob,
+ a_lob varchar2(255) default 'X' not null,
some_date timestamp,
old_boolean number(1) default 0 not null,
old_boolean2 number(1),
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.1.sql
index f07e7603e..662e1dd33 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.1.sql
@@ -98,6 +98,8 @@ alter table migtest_e_basic modify status not null;
alter table migtest_e_basic modify status2 varchar2(127);
alter table migtest_e_basic modify status2 default null;
alter table migtest_e_basic modify status2 null;
+alter table migtest_e_basic modify a_lob default null;
+alter table migtest_e_basic modify a_lob null;
alter table migtest_e_basic modify user_id null;
alter table migtest_e_basic add new_string_field varchar2(255) default 'foo''bar' not null;
alter table migtest_e_basic add new_boolean_field number(1) default 1 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.3.sql
index e3eded2c5..38dad644b 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/1.3.sql
@@ -99,6 +99,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- NOTE: table has @History - special migration may be necessary
@@ -109,6 +111,9 @@ alter table migtest_e_basic modify status null;
alter table migtest_e_basic modify status2 varchar2(1);
alter table migtest_e_basic modify status2 default 'N';
alter table migtest_e_basic modify status2 not null;
+alter table migtest_e_basic modify a_lob varchar2(255);
+alter table migtest_e_basic modify a_lob default 'X';
+alter table migtest_e_basic modify a_lob not null;
alter table migtest_e_basic modify user_id default 23;
alter table migtest_e_basic modify user_id not null;
alter table migtest_e_basic add description_file blob;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/idx_oracle.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/idx_oracle.migrations
index efeb92ecd..0176dd762 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/idx_oracle.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle/idx_oracle.migrations
@@ -1,7 +1,7 @@
--431306570, 1.0__initial.sql
-187324506, 1.1.sql
+2058445079, 1.0__initial.sql
+-406177058, 1.1.sql
-582436324, 1.2__dropsFor_1.1.sql
--283226837, 1.3.sql
+245787021, 1.3.sql
663051206, 1.4__dropsFor_1.3.sql
1357801733, R__oracle_only_views.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.0__initial.sql
index 8c9d73d69..4daef7bce 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.0__initial.sql
@@ -70,6 +70,7 @@ create table migtest_e_basic (
description varchar2(127),
description_file blob,
json_list clob,
+ a_lob varchar2(255) default 'X' not null,
some_date timestamp,
old_boolean number(1) default 0 not null,
old_boolean2 number(1),
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.1.sql
index 944a30188..d5c198c6b 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.1.sql
@@ -99,6 +99,8 @@ alter table migtest_e_basic modify status not null;
alter table migtest_e_basic modify status2 varchar2(127);
alter table migtest_e_basic modify status2 default null;
alter table migtest_e_basic modify status2 null;
+alter table migtest_e_basic modify a_lob default null;
+alter table migtest_e_basic modify a_lob null;
alter table migtest_e_basic modify user_id null;
alter table migtest_e_basic add new_string_field varchar2(255) default 'foo''bar' not null;
alter table migtest_e_basic add new_boolean_field number(1) default 1 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.3.sql
index 30535ac51..f4ea1b1ee 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/1.3.sql
@@ -100,6 +100,8 @@ create sequence migtest_e_ref_seq;
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- NOTE: table has @History - special migration may be necessary
@@ -110,6 +112,9 @@ alter table migtest_e_basic modify status null;
alter table migtest_e_basic modify status2 varchar2(1);
alter table migtest_e_basic modify status2 default 'N';
alter table migtest_e_basic modify status2 not null;
+alter table migtest_e_basic modify a_lob varchar2(255);
+alter table migtest_e_basic modify a_lob default 'X';
+alter table migtest_e_basic modify a_lob not null;
alter table migtest_e_basic modify user_id default 23;
alter table migtest_e_basic modify user_id not null;
alter table migtest_e_basic add description_file blob;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/idx_oracle.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/idx_oracle.migrations
index c4238ae4a..163871480 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/idx_oracle.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/oracle11/idx_oracle.migrations
@@ -1,7 +1,7 @@
--1759239422, 1.0__initial.sql
--1852784090, 1.1.sql
+-1132728964, 1.0__initial.sql
+1635736608, 1.1.sql
-582436324, 1.2__dropsFor_1.1.sql
--734374474, 1.3.sql
+2103586605, 1.3.sql
663051206, 1.4__dropsFor_1.3.sql
1357801733, R__oracle_only_views.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.0__initial.sql
index 91665c077..9e0e21cbc 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file bytea,
json_list json,
+ a_lob varchar(255) default 'X' not null,
some_date timestamptz,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.1.sql
index 40d28c763..7d7940d6c 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.1.sql
@@ -78,6 +78,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 type varchar(127) using status2::varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 drop not null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob drop not null;
alter table migtest_e_basic alter column user_id drop not null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.3.sql
index e7bdfa534..40c43d938 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
drop trigger if exists migtest_e_history2_history_upd on migtest_e_history2 cascade;
drop function if exists migtest_e_history2_history_version();
@@ -53,6 +55,9 @@ alter table migtest_e_basic alter column status drop not null;
alter table migtest_e_basic alter column status2 type varchar(1) using status2::varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob type varchar(255) using a_lob::varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file bytea;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/idx_postgres.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/idx_postgres.migrations
index 766d37588..e62ed906f 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/idx_postgres.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres/idx_postgres.migrations
@@ -1,7 +1,7 @@
-833333752, 1.0__initial.sql
--962575173, 1.1.sql
+-1277453273, 1.0__initial.sql
+-2141665406, 1.1.sql
-1098989118, 1.2__dropsFor_1.1.sql
-808262548, 1.3.sql
+199465792, 1.3.sql
1729345905, 1.4__dropsFor_1.3.sql
783227075, R__multi_comments.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.0__initial.sql
index 977fed59f..e088febde 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file bytea,
json_list json,
+ a_lob varchar(255) default 'X' not null,
some_date timestamptz,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.1.sql
index 852771f46..6622865e2 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.1.sql
@@ -78,6 +78,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 type varchar(127) using status2::varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 drop not null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob drop not null;
alter table migtest_e_basic alter column user_id drop not null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.3.sql
index 33d980263..aa87d0936 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
drop trigger if exists migtest_e_history2_history_upd on migtest_e_history2 cascade;
drop function if exists migtest_e_history2_history_version();
@@ -53,6 +55,9 @@ alter table migtest_e_basic alter column status drop not null;
alter table migtest_e_basic alter column status2 type varchar(1) using status2::varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob type varchar(255) using a_lob::varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file bytea;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/idx_postgres.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/idx_postgres.migrations
index 729c25711..753ebe59c 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/idx_postgres.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/postgres9/idx_postgres.migrations
@@ -1,7 +1,7 @@
-1922532056, 1.0__initial.sql
--976679466, 1.1.sql
+1678831678, 1.0__initial.sql
+-1261465039, 1.1.sql
-1098989118, 1.2__dropsFor_1.1.sql
-303027582, 1.3.sql
+39355920, 1.3.sql
1729345905, 1.4__dropsFor_1.3.sql
783227075, R__multi_comments.sql
561281075, R__order_views.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.0__initial.sql
index ada8a52fa..4b0911a54 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file binary(4500),
json_list long varchar,
+ a_lob varchar(255) default 'X' not null,
some_date timestamp,
old_boolean bit default false not null,
old_boolean2 bit,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.1.sql
index a1422148b..41b8f5b80 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.1.sql
@@ -53,6 +53,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 set null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob set null;
alter table migtest_e_basic alter column user_id set null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field bit default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.3.sql
index 95888a2ae..db54a5526 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- NOTE: table has @History - special migration may be necessary
@@ -37,6 +39,9 @@ alter table migtest_e_basic alter column status set null;
alter table migtest_e_basic alter column status2 varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file binary(4500);
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/idx_sqlanywhere.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/idx_sqlanywhere.migrations
index 7dce576ef..2b9baab48 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/idx_sqlanywhere.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlanywhere/idx_sqlanywhere.migrations
@@ -1,6 +1,6 @@
-1609288900, 1.0__initial.sql
-887406340, 1.1.sql
+874272908, 1.0__initial.sql
+1253219479, 1.1.sql
1279151426, 1.2__dropsFor_1.1.sql
--671185644, 1.3.sql
+-894462776, 1.3.sql
80209848, 1.4__dropsFor_1.3.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.0__initial.sql
index 4e74503f7..0f53a01bf 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.0__initial.sql
@@ -64,6 +64,7 @@ create table migtest_e_basic (
description varchar(127),
description_file blob,
json_list clob,
+ a_lob varchar(255) default 'X' not null,
some_date timestamp,
old_boolean int default 0 not null,
old_boolean2 int,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.1.sql
index a8880c063..873ee0334 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.1.sql
@@ -58,6 +58,8 @@ alter table migtest_ckey_parent add column assoc_id integer;
-- not supported: alter table migtest_e_basic alter column status2 varchar(127);
-- not supported: alter table migtest_e_basic alter column status2 drop default;
-- not supported: alter table migtest_e_basic alter column status2 set null;
+-- not supported: alter table migtest_e_basic alter column a_lob drop default;
+-- not supported: alter table migtest_e_basic alter column a_lob set null;
-- not supported: alter table migtest_e_basic alter column user_id set null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field int default 1 not null;
@@ -70,7 +72,6 @@ alter table migtest_e_basic add column new_integer integer default 42 not null;
alter table migtest_e_history2 add column test_string2 varchar(255);
alter table migtest_e_history2 add column test_string3 varchar(255) default 'unknown' not null;
alter table migtest_e_history2 add column new_column varchar(20);
--- not supported: alter table migtest_e_history4 alter column test_number integer;
alter table migtest_e_history5 add column test_boolean int default 0 not null;
-- not supported: alter table migtest_e_history6 alter column test_number1 set default 42;
-- not supported: alter table migtest_e_history6 alter column test_number1 set not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.3.sql
index 10f81b07d..0b0f96b0b 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- NOTE: table has @History - special migration may be necessary
@@ -37,6 +39,9 @@ update migtest_e_history6 set test_number2 = 7 where test_number2 is null;
-- not supported: alter table migtest_e_basic alter column status2 varchar(1);
-- not supported: alter table migtest_e_basic alter column status2 set default 'N';
-- not supported: alter table migtest_e_basic alter column status2 set not null;
+-- not supported: alter table migtest_e_basic alter column a_lob varchar(255);
+-- not supported: alter table migtest_e_basic alter column a_lob set default 'X';
+-- not supported: alter table migtest_e_basic alter column a_lob set not null;
-- not supported: alter table migtest_e_basic alter column user_id set default 23;
-- not supported: alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file blob;
@@ -47,7 +52,6 @@ alter table migtest_e_basic add column eref_id integer;
-- not supported: alter table migtest_e_history2 alter column test_string set null;
alter table migtest_e_history2 add column obsolete_string1 varchar(255);
alter table migtest_e_history2 add column obsolete_string2 varchar(255);
--- not supported: alter table migtest_e_history4 alter column test_number integer;
-- not supported: alter table migtest_e_history6 alter column test_number1 drop default;
-- not supported: alter table migtest_e_history6 alter column test_number1 set null;
-- not supported: alter table migtest_e_history6 alter column test_number2 set default 7;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/idx_sqlite.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/idx_sqlite.migrations
index 414293ba5..24bda4a35 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/idx_sqlite.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlite/idx_sqlite.migrations
@@ -1,7 +1,7 @@
--1915238546, 1.0__initial.sql
--71853945, 1.1.sql
+-280067147, 1.0__initial.sql
+1471316137, 1.1.sql
1279151426, 1.2__dropsFor_1.1.sql
-1929931571, 1.3.sql
+18475685, 1.3.sql
80209848, 1.4__dropsFor_1.3.sql
2034589659, R__order_views_sqlite.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.0__initial.sql
index 4d23f6310..aca71555c 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file image,
json_list text,
+ a_lob varchar(255) default 'X' not null,
some_date datetime2,
old_boolean bit default 0 not null,
old_boolean2 bit,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.1.sql
index cf7074030..b731e5830 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.1.sql
@@ -70,6 +70,8 @@ alter table migtest_e_basic alter column status varchar(1) not null;
alter table migtest_e_basic add default 'A' for status;
EXEC usp_ebean_drop_default_constraint migtest_e_basic, status2;
alter table migtest_e_basic alter column status2 varchar(127);
+EXEC usp_ebean_drop_default_constraint migtest_e_basic, a_lob;
+alter table migtest_e_basic alter column a_lob varchar(255);
alter table migtest_e_basic alter column user_id integer;
alter table migtest_e_basic add new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add new_boolean_field bit default 1 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.3.sql
index 1c4007cd9..2fde6f6da 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/1.3.sql
@@ -31,6 +31,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- alter table migtest_e_history2 set (system_versioning = off (history_table=dbo.migtest_e_history2_history));
-- history migration goes here
@@ -53,6 +55,9 @@ alter table migtest_e_basic alter column status varchar(1);
EXEC usp_ebean_drop_default_constraint migtest_e_basic, status2;
alter table migtest_e_basic alter column status2 varchar(1) not null;
alter table migtest_e_basic add default 'N' for status2;
+EXEC usp_ebean_drop_default_constraint migtest_e_basic, a_lob;
+alter table migtest_e_basic alter column a_lob varchar(255) not null;
+alter table migtest_e_basic add default 'X' for a_lob;
EXEC usp_ebean_drop_default_constraint migtest_e_basic, user_id;
alter table migtest_e_basic alter column user_id integer not null;
alter table migtest_e_basic add default 23 for user_id;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/idx_sqlserver.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/idx_sqlserver.migrations
index 8155a89cc..a8f498f63 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/idx_sqlserver.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver16/idx_sqlserver.migrations
@@ -1,8 +1,8 @@
-2122378240, I__create_procs.sql
--846203024, 1.0__initial.sql
-91948674, 1.1.sql
+1442928133, 1.0__initial.sql
+168980248, 1.1.sql
-1687762822, 1.2__dropsFor_1.1.sql
-1309342689, 1.3.sql
+155669224, 1.3.sql
-410961452, 1.4__dropsFor_1.3.sql
1607822082, R__order_views_mssql.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.0__initial.sql
index bb3a02724..df4dfb099 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.0__initial.sql
@@ -70,6 +70,7 @@ create table migtest_e_basic (
description nvarchar(127),
description_file image,
json_list nvarchar(max),
+ a_lob nvarchar(255) default 'X' not null,
some_date datetime2,
old_boolean bit default 0 not null,
old_boolean2 bit,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.1.sql
index 71a4fffce..ae85f459d 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.1.sql
@@ -71,6 +71,8 @@ alter table migtest_e_basic alter column status nvarchar(1) not null;
alter table migtest_e_basic add default 'A' for status;
EXEC usp_ebean_drop_default_constraint migtest_e_basic, status2;
alter table migtest_e_basic alter column status2 nvarchar(127);
+EXEC usp_ebean_drop_default_constraint migtest_e_basic, a_lob;
+alter table migtest_e_basic alter column a_lob nvarchar(255);
alter table migtest_e_basic alter column user_id integer;
alter table migtest_e_basic add new_string_field nvarchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add new_boolean_field bit default 1 not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.3.sql
index 408cb2287..de600ddb1 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/1.3.sql
@@ -32,6 +32,8 @@ create sequence migtest_e_ref_seq as bigint start with 1;
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
-- alter table migtest_e_history2 set (system_versioning = off (history_table=dbo.migtest_e_history2_history));
-- history migration goes here
@@ -54,6 +56,9 @@ alter table migtest_e_basic alter column status nvarchar(1);
EXEC usp_ebean_drop_default_constraint migtest_e_basic, status2;
alter table migtest_e_basic alter column status2 nvarchar(1) not null;
alter table migtest_e_basic add default 'N' for status2;
+EXEC usp_ebean_drop_default_constraint migtest_e_basic, a_lob;
+alter table migtest_e_basic alter column a_lob nvarchar(255) not null;
+alter table migtest_e_basic add default 'X' for a_lob;
EXEC usp_ebean_drop_default_constraint migtest_e_basic, user_id;
alter table migtest_e_basic alter column user_id integer not null;
alter table migtest_e_basic add default 23 for user_id;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/idx_sqlserver.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/idx_sqlserver.migrations
index ff54d6d15..eaaded292 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/idx_sqlserver.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/sqlserver17/idx_sqlserver.migrations
@@ -1,8 +1,8 @@
-2122378240, I__create_procs.sql
-538577663, 1.0__initial.sql
--60811760, 1.1.sql
+-199159570, 1.0__initial.sql
+2140869743, 1.1.sql
-1687762822, 1.2__dropsFor_1.1.sql
-935437796, 1.3.sql
+-476460378, 1.3.sql
-410961452, 1.4__dropsFor_1.3.sql
1607822082, R__order_views_mssql.sql
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.0__initial.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.0__initial.sql
index faf04fb3c..159a176d6 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.0__initial.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.0__initial.sql
@@ -62,6 +62,7 @@ create table migtest_e_basic (
description varchar(127),
description_file bytea,
json_list json,
+ a_lob varchar(255) default 'X' not null,
some_date timestamptz,
old_boolean boolean default false not null,
old_boolean2 boolean,
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.1.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.1.sql
index c386b8e42..55a97ccb3 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.1.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.1.sql
@@ -73,6 +73,8 @@ alter table migtest_e_basic alter column status set not null;
alter table migtest_e_basic alter column status2 type varchar(127) using status2::varchar(127);
alter table migtest_e_basic alter column status2 drop default;
alter table migtest_e_basic alter column status2 drop not null;
+alter table migtest_e_basic alter column a_lob drop default;
+alter table migtest_e_basic alter column a_lob drop not null;
alter table migtest_e_basic alter column user_id drop not null;
alter table migtest_e_basic add column new_string_field varchar(255) default 'foo''bar' not null;
alter table migtest_e_basic add column new_boolean_field boolean default true not null;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.3.sql b/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.3.sql
index b1630f0f1..997d95033 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.3.sql
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/1.3.sql
@@ -27,6 +27,8 @@ create table migtest_e_ref (
update migtest_e_basic set status2 = 'N' where status2 is null;
+update migtest_e_basic set a_lob = 'X' where a_lob is null;
+
update migtest_e_basic set user_id = 23 where user_id is null;
drop trigger if exists migtest_e_history2_history_upd on migtest_e_history2 cascade;
drop function if exists migtest_e_history2_history_version();
@@ -53,6 +55,9 @@ alter table migtest_e_basic alter column status drop not null;
alter table migtest_e_basic alter column status2 type varchar(1) using status2::varchar(1);
alter table migtest_e_basic alter column status2 set default 'N';
alter table migtest_e_basic alter column status2 set not null;
+alter table migtest_e_basic alter column a_lob type varchar(255) using a_lob::varchar(255);
+alter table migtest_e_basic alter column a_lob set default 'X';
+alter table migtest_e_basic alter column a_lob set not null;
alter table migtest_e_basic alter column user_id set default 23;
alter table migtest_e_basic alter column user_id set not null;
alter table migtest_e_basic add column description_file bytea;
diff --git a/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/idx_yugabyte.migrations b/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/idx_yugabyte.migrations
index f4d91aafd..df428d942 100644
--- a/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/idx_yugabyte.migrations
+++ b/ebean-test/src/test/resources/migrationtest/dbmigration/yugabyte/idx_yugabyte.migrations
@@ -1,7 +1,7 @@
--669716166, 1.0__initial.sql
--558299616, 1.1.sql
+1817007763, 1.0__initial.sql
+-2145787580, 1.1.sql
-1098989118, 1.2__dropsFor_1.1.sql
-930822202, 1.3.sql
+30606484, 1.3.sql
1729345905, 1.4__dropsFor_1.3.sql
561281075, R__order_views.sql