From ee81ee4d7caab61561c53010ec8769c02ef35c20 Mon Sep 17 00:00:00 2001 From: rob bygrave Date: Sat, 22 Feb 2020 08:50:32 +1300 Subject: [PATCH] test only update of ddl review for mysql-create-all.sql --- src/test/ddl-review/mysql-create-all.sql | 50 +++++++++++++++++++----- src/test/ddl-review/mysql-drop-all.sql | 13 +++++- 2 files changed, 53 insertions(+), 10 deletions(-) diff --git a/src/test/ddl-review/mysql-create-all.sql b/src/test/ddl-review/mysql-create-all.sql index a7ab5fe17..b81d42511 100644 --- a/src/test/ddl-review/mysql-create-all.sql +++ b/src/test/ddl-review/mysql-create-all.sql @@ -1,4 +1,4 @@ --- Generated by ebean unknown at 2020-01-10T01:29:41.798461Z +-- Generated by ebean unknown at 2020-02-21T19:45:37.488834Z create table asimple_bean ( id bigint auto_increment not null, name varchar(255), @@ -606,6 +606,14 @@ create table dexh_entity ( constraint pk_dexh_entity primary key (oid) ); +create table dint_parent ( + type integer(31) not null, + id bigint auto_increment not null, + val integer, + more varchar(255), + constraint pk_dint_parent primary key (id) +); + create table dmachine ( id bigint auto_increment not null, name varchar(255), @@ -618,7 +626,7 @@ create table d_machine_aux_use ( id bigint auto_increment not null, machine_id bigint not null, name varchar(255), - date date, + edate date, use_secs bigint not null, fuel decimal(38), version bigint not null, @@ -628,7 +636,7 @@ create table d_machine_aux_use ( create table d_machine_stats ( id bigint auto_increment not null, machine_id bigint not null, - date date, + edate date, total_kms bigint not null, hours bigint not null, rate decimal(38), @@ -640,7 +648,7 @@ create table d_machine_stats ( create table d_machine_use ( id bigint auto_increment not null, machine_id bigint not null, - date date, + edate date, distance_kms bigint not null, time_secs bigint not null, fuel decimal(38), @@ -1602,7 +1610,7 @@ create table ecbl_person_phone_numbers ( person_id bigint not null, country_code varchar(2), area varchar(6), - number varchar(20) + phnum varchar(20) ); create table ecbm_person ( @@ -1617,7 +1625,7 @@ create table ecbm_person_phone_numbers ( mkey varchar(255) not null, country_code varchar(2), area varchar(6), - number varchar(20) + phnum varchar(20) ); create table ecm_person ( @@ -1630,7 +1638,7 @@ create table ecm_person ( create table ecm_person_phone_numbers ( ecm_person_id bigint not null, type varchar(4) not null, - number varchar(10) not null + phnum varchar(10) not null ); create table ecmc_person ( @@ -2594,7 +2602,7 @@ create table o_cached_natkey3 ( create table ocached_nkey_uid ( id bigint auto_increment not null, - uid varchar(40), + cid varchar(40), other varchar(255), version bigint not null, constraint pk_ocached_nkey_uid primary key (id) @@ -2661,6 +2669,19 @@ create table oroad_show_msg ( constraint pk_oroad_show_msg primary key (id) ); +create table om_account_child_dbo ( + id bigint auto_increment not null, + description varchar(255), + banana_rama_id bigint, + constraint pk_om_account_child_dbo primary key (id) +); + +create table om_account_dbo ( + id bigint auto_increment not null, + name varchar(255), + constraint pk_om_account_dbo primary key (id) +); + create table om_basic_child ( id bigint auto_increment not null, name varchar(255), @@ -3418,6 +3439,7 @@ create table some_new_types_bean ( yr_mth date, month_day date, sql_date date, + sql_time time, local_date date, local_date_time datetime(6), offset_date_time datetime(6), @@ -3725,7 +3747,7 @@ create table ut_master ( id integer auto_increment not null, name varchar(255), description varchar(255), - date date, + event_date date, version integer not null, constraint pk_ut_master primary key (id) ); @@ -3790,6 +3812,13 @@ create table em_user ( constraint pk_em_user primary key (id) ); +create table user_interest_live ( + user_id bigint not null, + live_id bigint not null, + created_at datetime(6) not null, + constraint pk_user_interest_live primary key (user_id,live_id) +); + create table em_user_role ( user_id bigint not null, role_id bigint not null, @@ -4461,6 +4490,9 @@ alter table omvertex_other add constraint fk_omvertex_other_omvertex_id foreign alter table oroad_show_msg add constraint fk_oroad_show_msg_company_id foreign key (company_id) references ocompany (id) on delete restrict on update restrict; +create index ix_om_account_child_dbo_banana_rama_id on om_account_child_dbo (banana_rama_id); +alter table om_account_child_dbo add constraint fk_om_account_child_dbo_banana_rama_id foreign key (banana_rama_id) references om_account_dbo (id) on delete restrict on update restrict; + create index ix_om_basic_child_parent_id on om_basic_child (parent_id); alter table om_basic_child add constraint fk_om_basic_child_parent_id foreign key (parent_id) references om_basic_parent (id) on delete restrict on update restrict; diff --git a/src/test/ddl-review/mysql-drop-all.sql b/src/test/ddl-review/mysql-drop-all.sql index 27fbdfa74..eb2ce81b6 100644 --- a/src/test/ddl-review/mysql-drop-all.sql +++ b/src/test/ddl-review/mysql-drop-all.sql @@ -1,4 +1,4 @@ --- Generated by ebean unknown at 2020-01-10T01:29:41.798461Z +-- Generated by ebean unknown at 2020-02-21T19:45:37.488834Z alter table bar drop foreign key fk_bar_foo_id; drop index ix_bar_foo_id on bar; @@ -542,6 +542,9 @@ drop index ix_omvertex_other_omvertex_id on omvertex_other; alter table oroad_show_msg drop foreign key fk_oroad_show_msg_company_id; +alter table om_account_child_dbo drop foreign key fk_om_account_child_dbo_banana_rama_id; +drop index ix_om_account_child_dbo_banana_rama_id on om_account_child_dbo; + alter table om_basic_child drop foreign key fk_om_basic_child_parent_id; drop index ix_om_basic_child_parent_id on om_basic_child; @@ -957,6 +960,8 @@ drop table if exists dcredit_drol; drop table if exists dexh_entity; +drop table if exists dint_parent; + drop table if exists dmachine; drop table if exists d_machine_aux_use; @@ -1534,6 +1539,10 @@ drop table if exists omvertex_other; drop table if exists oroad_show_msg; +drop table if exists om_account_child_dbo; + +drop table if exists om_account_dbo; + drop table if exists om_basic_child; drop table if exists om_basic_parent; @@ -1821,6 +1830,8 @@ drop table if exists g_user; drop table if exists em_user; +drop table if exists user_interest_live; + drop table if exists em_user_role; drop table if exists vehicle;