mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Reference: added CLOB
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package misc.migration.v1_0;
|
||||
|
||||
import io.ebean.annotation.DbDefault;
|
||||
import io.ebean.annotation.DbJson;
|
||||
import io.ebean.annotation.EnumValue;
|
||||
import io.ebean.annotation.Index;
|
||||
import io.ebean.annotation.NotNull;
|
||||
@@ -16,6 +17,7 @@ import javax.validation.constraints.Size;
|
||||
|
||||
import java.io.File;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
|
||||
@Entity
|
||||
@Table(name = "migtest_e_basic")
|
||||
@@ -51,6 +53,10 @@ public class EBasic {
|
||||
@Lob
|
||||
@Column(columnDefinition = "db2;blob(64M);")
|
||||
File descriptionFile;
|
||||
|
||||
@DbJson
|
||||
//@Column(columnDefinition = "db2;clob(16K);")
|
||||
List<String> jsonList;
|
||||
|
||||
Timestamp someDate;
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import io.ebean.annotation.*;
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
|
||||
@Entity
|
||||
@Table(name = "migtest_e_basic")
|
||||
@@ -58,6 +59,10 @@ public class EBasic {
|
||||
@Size(max = 127)
|
||||
String description;
|
||||
|
||||
@DbJson
|
||||
//@Column(columnDefinition = "db2;clob(16K);")
|
||||
List<String> jsonList;
|
||||
|
||||
//@NotNull
|
||||
//@DbDefault("2000-01-01T00:00:00") //- date time literals do not work for each platform yet
|
||||
//@DbDefault("now") //- now does not work for mariaDb
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package misc.migration.v1_2;
|
||||
|
||||
import io.ebean.annotation.DbDefault;
|
||||
import io.ebean.annotation.DbJson;
|
||||
import io.ebean.annotation.EnumValue;
|
||||
import io.ebean.annotation.Index;
|
||||
import io.ebean.annotation.NotNull;
|
||||
@@ -15,6 +16,7 @@ import javax.validation.constraints.Size;
|
||||
|
||||
import java.io.File;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.List;
|
||||
|
||||
@Entity
|
||||
@Table(name = "migtest_e_basic")
|
||||
@@ -50,6 +52,10 @@ public class EBasic {
|
||||
@Column(columnDefinition = "db2;blob(64M);")
|
||||
File descriptionFile;
|
||||
|
||||
@DbJson
|
||||
//@Column(columnDefinition = "db2;clob(16K);")
|
||||
List<String> jsonList;
|
||||
|
||||
Timestamp someDate;
|
||||
|
||||
boolean old_boolean;
|
||||
|
||||
@@ -52,6 +52,7 @@ create table migtest_e_basic (
|
||||
name String,
|
||||
description String,
|
||||
description_file blob,
|
||||
json_list String,
|
||||
some_date DateTime,
|
||||
old_boolean UInt8 default 0,
|
||||
old_boolean2 UInt8,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
1588846231, 1.0__initial.sql
|
||||
637643590, 1.0__initial.sql
|
||||
-1102375855, 1.1.sql
|
||||
1279151426, 1.2__dropsFor_1.1.sql
|
||||
581928632, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file bytea,
|
||||
json_list json,
|
||||
some_date timestamptz,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
246318791, 1.0__initial.sql
|
||||
603148324, 1.0__initial.sql
|
||||
1109849447, 1.1.sql
|
||||
240919209, 1.2__dropsFor_1.1.sql
|
||||
612721597, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob(64M),
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean smallint default 0 default false not null,
|
||||
old_boolean2 smallint default 0,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
399416897, 1.0__initial.sql
|
||||
-789856884, 1.0__initial.sql
|
||||
234392641, 1.1.sql
|
||||
364066694, 1.2__dropsFor_1.1.sql
|
||||
456341738, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob(64M),
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
289288448, 1.0__initial.sql
|
||||
1258752439, 1.0__initial.sql
|
||||
1416632883, 1.1.sql
|
||||
364066694, 1.2__dropsFor_1.1.sql
|
||||
-355648343, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob(64M),
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-1602289007, I__create_tablespaces.sql
|
||||
-1032235160, 1.0__initial.sql
|
||||
1571160950, 1.0__initial.sql
|
||||
-698103775, 1.1.sql
|
||||
364066694, 1.2__dropsFor_1.1.sql
|
||||
-1759761341, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob(64M),
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-1032235160, 1.0__initial.sql
|
||||
1571160950, 1.0__initial.sql
|
||||
-698103775, 1.1.sql
|
||||
364066694, 1.2__dropsFor_1.1.sql
|
||||
-1759761341, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob,
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-1254950549, 1.0__initial.sql
|
||||
656937451, 1.0__initial.sql
|
||||
-905429129, 1.1.sql
|
||||
1279151426, 1.2__dropsFor_1.1.sql
|
||||
110210997, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob,
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
1200492722, 1.0__initial.sql
|
||||
383687789, 1.0__initial.sql
|
||||
-475634933, 1.1.sql
|
||||
-1366392410, 1.2__dropsFor_1.1.sql
|
||||
-323346059, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create column table migtest_e_basic (
|
||||
name nvarchar(127),
|
||||
description nvarchar(127),
|
||||
description_file blob,
|
||||
json_list nclob,
|
||||
some_date timestamp,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
-745347271, I__create_procs.sql
|
||||
881849401, 1.0__initial.sql
|
||||
-1333495553, 1.0__initial.sql
|
||||
-1990555725, 1.1.sql
|
||||
197547825, 1.2__dropsFor_1.1.sql
|
||||
1338960395, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob,
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
442457363, 1.0__initial.sql
|
||||
-1277023109, 1.0__initial.sql
|
||||
-1664513570, 1.1.sql
|
||||
-300925212, 1.2__dropsFor_1.1.sql
|
||||
-612892741, 1.3.sql
|
||||
|
||||
+1
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file longblob,
|
||||
json_list json,
|
||||
some_date datetime(6),
|
||||
old_boolean tinyint(1) default 0 not null,
|
||||
old_boolean2 tinyint(1),
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-636344713, 1.0__initial.sql
|
||||
853074400, 1.0__initial.sql
|
||||
-1901679107, 1.1.sql
|
||||
-828985759, 1.2__dropsFor_1.1.sql
|
||||
903264949, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file longblob,
|
||||
json_list json,
|
||||
some_date datetime(6),
|
||||
old_boolean tinyint(1) default 0 not null,
|
||||
old_boolean2 tinyint(1),
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
1835064798, I__create_procs.sql
|
||||
-636344713, 1.0__initial.sql
|
||||
853074400, 1.0__initial.sql
|
||||
-1901679107, 1.1.sql
|
||||
2123392915, 1.2__dropsFor_1.1.sql
|
||||
903264949, 1.3.sql
|
||||
|
||||
@@ -44,6 +44,7 @@
|
||||
<column name="name" type="varchar(127)"/>
|
||||
<column name="description" type="varchar(127)"/>
|
||||
<column name="description_file" type="db2;blob(64M);blob"/>
|
||||
<column name="json_list" type="json"/>
|
||||
<column name="some_date" type="timestamp"/>
|
||||
<column name="old_boolean" type="boolean" defaultValue="false" notnull="true"/>
|
||||
<column name="old_boolean2" type="boolean"/>
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file longblob,
|
||||
json_list json,
|
||||
some_date datetime(6),
|
||||
old_boolean tinyint(1) default 0 not null,
|
||||
old_boolean2 tinyint(1),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
1835064798, I__create_procs.sql
|
||||
-1623464972, 1.0__initial.sql
|
||||
-1579197660, 1.0__initial.sql
|
||||
-882132850, 1.1.sql
|
||||
-1332434945, 1.2__dropsFor_1.1.sql
|
||||
-1085730419, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file longblob,
|
||||
json_list json,
|
||||
some_date datetime,
|
||||
old_boolean tinyint(1) default 0 not null,
|
||||
old_boolean2 tinyint(1),
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
1835064798, I__create_procs.sql
|
||||
529930619, 1.0__initial.sql
|
||||
-674145003, 1.0__initial.sql
|
||||
-882132850, 1.1.sql
|
||||
-1332434945, 1.2__dropsFor_1.1.sql
|
||||
-1085730419, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob,
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
1041350610, 1.0__initial.sql
|
||||
-1193425379, 1.0__initial.sql
|
||||
-1144238347, 1.1.sql
|
||||
-424253630, 1.2__dropsFor_1.1.sql
|
||||
-270701977, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar2(127),
|
||||
description varchar2(127),
|
||||
description_file blob,
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean number(1) default 0 not null,
|
||||
old_boolean2 number(1),
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-554067191, 1.0__initial.sql
|
||||
-431306570, 1.0__initial.sql
|
||||
187324506, 1.1.sql
|
||||
-582436324, 1.2__dropsFor_1.1.sql
|
||||
-283226837, 1.3.sql
|
||||
|
||||
@@ -69,6 +69,7 @@ create table migtest_e_basic (
|
||||
name varchar2(127),
|
||||
description varchar2(127),
|
||||
description_file blob,
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean number(1) default 0 not null,
|
||||
old_boolean2 number(1),
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-712978357, 1.0__initial.sql
|
||||
-1759239422, 1.0__initial.sql
|
||||
-1852784090, 1.1.sql
|
||||
-582436324, 1.2__dropsFor_1.1.sql
|
||||
-734374474, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file bytea,
|
||||
json_list json,
|
||||
some_date timestamptz,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-125847545, 1.0__initial.sql
|
||||
833333752, 1.0__initial.sql
|
||||
-962575173, 1.1.sql
|
||||
-1098989118, 1.2__dropsFor_1.1.sql
|
||||
808262548, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file bytea,
|
||||
json_list json,
|
||||
some_date timestamptz,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-1050466540, 1.0__initial.sql
|
||||
1922532056, 1.0__initial.sql
|
||||
-976679466, 1.1.sql
|
||||
-1098989118, 1.2__dropsFor_1.1.sql
|
||||
303027582, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file binary(4500),
|
||||
json_list long varchar,
|
||||
some_date timestamp,
|
||||
old_boolean bit default false not null,
|
||||
old_boolean2 bit,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-2005091128, 1.0__initial.sql
|
||||
1609288900, 1.0__initial.sql
|
||||
887406340, 1.1.sql
|
||||
1279151426, 1.2__dropsFor_1.1.sql
|
||||
-671185644, 1.3.sql
|
||||
|
||||
@@ -63,6 +63,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file blob,
|
||||
json_list clob,
|
||||
some_date timestamp,
|
||||
old_boolean int default 0 not null,
|
||||
old_boolean2 int,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-990693989, 1.0__initial.sql
|
||||
-1915238546, 1.0__initial.sql
|
||||
-71853945, 1.1.sql
|
||||
1279151426, 1.2__dropsFor_1.1.sql
|
||||
1929931571, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file image,
|
||||
json_list text,
|
||||
some_date datetime2,
|
||||
old_boolean bit default 0 not null,
|
||||
old_boolean2 bit,
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
-2122378240, I__create_procs.sql
|
||||
1067515901, 1.0__initial.sql
|
||||
-846203024, 1.0__initial.sql
|
||||
91948674, 1.1.sql
|
||||
-1687762822, 1.2__dropsFor_1.1.sql
|
||||
1309342689, 1.3.sql
|
||||
|
||||
@@ -69,6 +69,7 @@ create table migtest_e_basic (
|
||||
name nvarchar(127),
|
||||
description nvarchar(127),
|
||||
description_file image,
|
||||
json_list nvarchar(max),
|
||||
some_date datetime2,
|
||||
old_boolean bit default 0 not null,
|
||||
old_boolean2 bit,
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
-2122378240, I__create_procs.sql
|
||||
-1941282829, 1.0__initial.sql
|
||||
538577663, 1.0__initial.sql
|
||||
-60811760, 1.1.sql
|
||||
-1687762822, 1.2__dropsFor_1.1.sql
|
||||
935437796, 1.3.sql
|
||||
|
||||
@@ -61,6 +61,7 @@ create table migtest_e_basic (
|
||||
name varchar(127),
|
||||
description varchar(127),
|
||||
description_file bytea,
|
||||
json_list json,
|
||||
some_date timestamptz,
|
||||
old_boolean boolean default false not null,
|
||||
old_boolean2 boolean,
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
-1111753161, 1.0__initial.sql
|
||||
-669716166, 1.0__initial.sql
|
||||
-558299616, 1.1.sql
|
||||
-1098989118, 1.2__dropsFor_1.1.sql
|
||||
930822202, 1.3.sql
|
||||
|
||||
Reference in New Issue
Block a user