mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
Update ddl review for h2
This commit is contained in:
1 parent
df3eda411a
commit
b22791c15b
2 files changed
+293
-13
No files matched your search
@@ -1,4 +1,4 @@
|
||||
-- Generated by ebean unknown at 2021-02-12T03:32:14.253435800Z
|
||||
-- Generated by ebean unknown at 2021-08-20T21:43:22.648422335Z
|
||||
create table asimple_bean (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
@@ -103,6 +103,18 @@ create table animal_shelter (
|
||||
constraint pk_animal_shelter primary key (id)
|
||||
);
|
||||
|
||||
create table app_config (
|
||||
id integer generated by default as identity not null,
|
||||
constraint pk_app_config primary key (id)
|
||||
);
|
||||
|
||||
create table app_config_control (
|
||||
id integer generated by default as identity not null,
|
||||
name varchar(255),
|
||||
config_id integer,
|
||||
constraint pk_app_config_control primary key (id)
|
||||
);
|
||||
|
||||
create table article (
|
||||
id integer generated by default as identity not null,
|
||||
name varchar(255),
|
||||
@@ -206,6 +218,14 @@ create table bsite_user_d (
|
||||
constraint ck_bsite_user_d_access_level check ( access_level in (0,1,2))
|
||||
);
|
||||
|
||||
create table bsite_user_dmany (
|
||||
site_id uuid not null,
|
||||
user_id uuid not null,
|
||||
name varchar(255) not null,
|
||||
many varchar(255),
|
||||
version bigint not null
|
||||
);
|
||||
|
||||
create table bsite_user_e (
|
||||
site_id uuid not null,
|
||||
user_id uuid not null,
|
||||
@@ -396,6 +416,18 @@ create table coroot (
|
||||
constraint pk_coroot primary key (id)
|
||||
);
|
||||
|
||||
create table calcd_data (
|
||||
id integer generated by default as identity not null,
|
||||
name varchar(255),
|
||||
constraint pk_calcd_data primary key (id)
|
||||
);
|
||||
|
||||
create table calcd_input (
|
||||
id integer generated by default as identity not null,
|
||||
name varchar(255),
|
||||
constraint pk_calcd_input primary key (id)
|
||||
);
|
||||
|
||||
create table calculation_result (
|
||||
id integer generated by default as identity not null,
|
||||
charge double not null,
|
||||
@@ -929,6 +961,7 @@ create table earray_set_bean (
|
||||
uids array,
|
||||
other_ids array,
|
||||
doubs array,
|
||||
status array,
|
||||
version bigint not null,
|
||||
constraint pk_earray_set_bean primary key (id)
|
||||
);
|
||||
@@ -948,6 +981,7 @@ create table ebasic_change_log (
|
||||
name varchar(20),
|
||||
short_description varchar(50),
|
||||
long_description varchar(100),
|
||||
plain_bean varchar(500),
|
||||
who_created varchar(255) not null,
|
||||
who_modified varchar(255) not null,
|
||||
when_created timestamp not null,
|
||||
@@ -985,7 +1019,7 @@ create table e_basicenc (
|
||||
id integer generated by default as identity not null,
|
||||
name varchar(255),
|
||||
description varbinary(80),
|
||||
dob varbinary(20),
|
||||
dob varbinary(80),
|
||||
status varbinary(20),
|
||||
last_update timestamp,
|
||||
constraint pk_e_basicenc primary key (id)
|
||||
@@ -1070,6 +1104,8 @@ create table ebasic_json_jackson3 (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
plain_value varchar(500),
|
||||
plain_value2 varchar(500),
|
||||
plain_value3 varchar(500),
|
||||
version bigint not null,
|
||||
constraint pk_ebasic_json_jackson3 primary key (id)
|
||||
);
|
||||
@@ -1136,6 +1172,16 @@ create table ebasic_json_map_varchar (
|
||||
constraint pk_ebasic_json_map_varchar primary key (id)
|
||||
);
|
||||
|
||||
create table ebasic_json_multi (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
plain_value1 varchar(500),
|
||||
plain_value2 varchar(500),
|
||||
plain_value3 varchar(500),
|
||||
version bigint not null,
|
||||
constraint pk_ebasic_json_multi primary key (id)
|
||||
);
|
||||
|
||||
create table ebasic_json_node (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
@@ -1196,6 +1242,32 @@ create table ebasic_no_sdchild (
|
||||
constraint pk_ebasic_no_sdchild primary key (id)
|
||||
);
|
||||
|
||||
create table ebasic_old_value (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
string_set clob,
|
||||
long_set clob,
|
||||
int_set clob,
|
||||
string_list clob,
|
||||
long_list clob,
|
||||
int_list clob,
|
||||
object_map clob,
|
||||
long_map clob,
|
||||
int_map clob,
|
||||
json_node clob,
|
||||
string_arr array,
|
||||
constraint pk_ebasic_old_value primary key (id)
|
||||
);
|
||||
|
||||
create table ebasic_plain (
|
||||
id bigint generated by default as identity not null,
|
||||
attr varchar(255),
|
||||
plain_bean varchar(500),
|
||||
plain_bean2 varchar(500),
|
||||
version bigint not null,
|
||||
constraint pk_ebasic_plain primary key (id)
|
||||
);
|
||||
|
||||
create table ebasic_sdchild (
|
||||
id bigint generated by default as identity not null,
|
||||
owner_id bigint not null,
|
||||
@@ -1370,14 +1442,18 @@ create table einvoice (
|
||||
invoice_date timestamp,
|
||||
state integer,
|
||||
person_id bigint,
|
||||
ship_street varchar(255) not null,
|
||||
ship_street varchar(255),
|
||||
ship_suburb varchar(255),
|
||||
ship_city varchar(255),
|
||||
ship_status varchar(3),
|
||||
bill_street varchar(255) not null,
|
||||
ship_jbean clob,
|
||||
ship_jraw clob,
|
||||
bill_street varchar(255),
|
||||
bill_suburb varchar(255),
|
||||
bill_city varchar(255),
|
||||
bill_status varchar(3),
|
||||
bill_jbean clob,
|
||||
bill_jraw clob,
|
||||
version bigint not null,
|
||||
constraint ck_einvoice_state check ( state in (0,1,2)),
|
||||
constraint ck_einvoice_ship_status check ( ship_status in ('ONE','TWO')),
|
||||
@@ -1450,10 +1526,12 @@ create table eperson (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
notes varchar(255),
|
||||
street varchar(255) not null,
|
||||
street varchar(255),
|
||||
suburb varchar(255),
|
||||
addr_city varchar(255),
|
||||
addr_status varchar(3),
|
||||
addr_jbean clob,
|
||||
jraw clob,
|
||||
version bigint not null,
|
||||
constraint ck_eperson_addr_status check ( addr_status in ('ONE','TWO')),
|
||||
constraint pk_eperson primary key (id)
|
||||
@@ -1465,8 +1543,10 @@ create table eperson2 (
|
||||
notes varchar(255),
|
||||
street varchar(10),
|
||||
suburb varchar(100),
|
||||
city varchar(255) not null,
|
||||
status varchar(3) not null,
|
||||
city varchar(255),
|
||||
status varchar(3),
|
||||
jbean clob,
|
||||
jraw clob,
|
||||
version bigint not null,
|
||||
constraint ck_eperson2_status check ( status in ('ONE','TWO')),
|
||||
constraint pk_eperson2 primary key (id)
|
||||
@@ -1479,6 +1559,8 @@ create table eperson3 (
|
||||
suburb varchar(255),
|
||||
city varchar(255),
|
||||
status varchar(3),
|
||||
jbean clob,
|
||||
jraw clob,
|
||||
version bigint not null,
|
||||
constraint ck_eperson3_status check ( status in ('ONE','TWO')),
|
||||
constraint pk_eperson3 primary key (id)
|
||||
@@ -1594,6 +1676,29 @@ create table esoft_del_user_esoft_del_role (
|
||||
constraint pk_esoft_del_user_esoft_del_role primary key (esoft_del_user_id,esoft_del_role_id)
|
||||
);
|
||||
|
||||
create table esoft_del_x (
|
||||
id uuid not null,
|
||||
y_id bigint,
|
||||
organization_id bigint,
|
||||
deleted boolean default false not null,
|
||||
constraint uq_esoft_del_x_y_id unique (y_id),
|
||||
constraint pk_esoft_del_x primary key (id)
|
||||
);
|
||||
|
||||
create table esoft_del_y (
|
||||
id bigint generated by default as identity not null,
|
||||
organization_id bigint,
|
||||
deleted boolean default false not null,
|
||||
constraint pk_esoft_del_y primary key (id)
|
||||
);
|
||||
|
||||
create table esoft_del_z (
|
||||
id bigint generated by default as identity not null,
|
||||
uuid uuid,
|
||||
deleted boolean default false not null,
|
||||
constraint pk_esoft_del_z primary key (id)
|
||||
);
|
||||
|
||||
create table esome_convert_type (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
@@ -2594,6 +2699,22 @@ create table mny_c (
|
||||
constraint pk_mny_c primary key (id)
|
||||
);
|
||||
|
||||
create table mny_edge (
|
||||
id integer generated by default as identity not null,
|
||||
from_id integer,
|
||||
to_id integer,
|
||||
flags integer not null,
|
||||
constraint uq_mny_edge_from_id_to_id unique (from_id,to_id),
|
||||
constraint uq_mny_edge_to_id_from_id unique (to_id,from_id),
|
||||
constraint pk_mny_edge primary key (id)
|
||||
);
|
||||
|
||||
create table mny_node (
|
||||
id integer generated by default as identity not null,
|
||||
name varchar(255),
|
||||
constraint pk_mny_node primary key (id)
|
||||
);
|
||||
|
||||
create table mny_topic (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
@@ -2835,6 +2956,20 @@ create table om_basic_parent (
|
||||
constraint pk_om_basic_parent primary key (id)
|
||||
);
|
||||
|
||||
create table om_bean_list_child (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
parent_id bigint,
|
||||
version bigint not null,
|
||||
constraint pk_om_bean_list_child primary key (id)
|
||||
);
|
||||
|
||||
create table om_bean_list_parent (
|
||||
id bigint generated by default as identity not null,
|
||||
version bigint not null,
|
||||
constraint pk_om_bean_list_parent primary key (id)
|
||||
);
|
||||
|
||||
create table om_ordered_detail (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
@@ -3418,6 +3553,15 @@ create table person_cache_info (
|
||||
constraint pk_person_cache_info primary key (person_id)
|
||||
);
|
||||
|
||||
create table person_other (
|
||||
id varchar(128) not null,
|
||||
email varchar(255),
|
||||
when_created timestamp not null,
|
||||
when_modified timestamp not null,
|
||||
version bigint not null,
|
||||
constraint pk_person_other primary key (id)
|
||||
);
|
||||
|
||||
create table persona (
|
||||
id bigint generated by default as identity not null,
|
||||
persona varchar(255),
|
||||
@@ -3537,6 +3681,12 @@ create table rel_master (
|
||||
constraint pk_rel_master primary key (id)
|
||||
);
|
||||
|
||||
create table app_config_re (
|
||||
id integer generated by default as identity not null,
|
||||
config_id integer,
|
||||
constraint pk_app_config_re primary key (id)
|
||||
);
|
||||
|
||||
create table resourcefile (
|
||||
id varchar(64) not null,
|
||||
parentresourcefileid varchar(64),
|
||||
@@ -3593,6 +3743,18 @@ create table section (
|
||||
constraint pk_section primary key (id)
|
||||
);
|
||||
|
||||
create table self_many_many (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
constraint pk_self_many_many primary key (id)
|
||||
);
|
||||
|
||||
create table self_many_bridge (
|
||||
self_1_id bigint not null,
|
||||
self_2_id bigint not null,
|
||||
constraint pk_self_many_bridge primary key (self_1_id,self_2_id)
|
||||
);
|
||||
|
||||
create table self_parent (
|
||||
id bigint generated by default as identity not null,
|
||||
name varchar(255),
|
||||
@@ -3762,7 +3924,7 @@ create table tevent_many (
|
||||
id bigint generated by default as identity not null,
|
||||
description varchar(255),
|
||||
event_id bigint,
|
||||
units integer not null,
|
||||
my_units integer not null,
|
||||
amount double not null,
|
||||
version bigint not null,
|
||||
constraint pk_tevent_many primary key (id)
|
||||
@@ -3890,6 +4052,16 @@ create table test_annotation_base_entity (
|
||||
null3 varchar(255)
|
||||
);
|
||||
|
||||
create table test_jakarta_annotation_base_entity (
|
||||
direct varchar(255),
|
||||
meta varchar(255),
|
||||
mixed varchar(255),
|
||||
constraint_annotation varchar(40),
|
||||
null1 varchar(255) not null,
|
||||
null2 varchar(255),
|
||||
null3 varchar(255)
|
||||
);
|
||||
|
||||
create table tire (
|
||||
id bigint not null,
|
||||
wheel bigint,
|
||||
@@ -4220,8 +4392,8 @@ create index ix_ecsm_values_host_id on ecsm_values (host_id);
|
||||
create index ix_order_referenced_parent_type on order_referenced_parent (type);
|
||||
create index ix_organization_node_kind on organization_node (kind);
|
||||
create index ano_3 on test_annotation_base_entity (direct);
|
||||
create index ano_1 on test_annotation_base_entity (direct);
|
||||
create index ano_2 on test_annotation_base_entity (direct);
|
||||
create index ano_1 on test_jakarta_annotation_base_entity (direct);
|
||||
create index ano_2 on test_jakarta_annotation_base_entity (direct);
|
||||
create index ix_bar_foo_id on bar (foo_id);
|
||||
alter table bar add constraint fk_bar_foo_id foreign key (foo_id) references foo (foo_id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4242,6 +4414,9 @@ alter table album add constraint fk_album_cover_id foreign key (cover_id) refere
|
||||
create index ix_animal_shelter_id on animal (shelter_id);
|
||||
alter table animal add constraint fk_animal_shelter_id foreign key (shelter_id) references animal_shelter (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_app_config_control_config_id on app_config_control (config_id);
|
||||
alter table app_config_control add constraint fk_app_config_control_config_id foreign key (config_id) references app_config (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_attribute_attribute_holder_id on attribute (attribute_holder_id);
|
||||
alter table attribute add constraint fk_attribute_attribute_holder_id foreign key (attribute_holder_id) references attribute_holder (id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4269,6 +4444,9 @@ alter table bsite_user_c add constraint fk_bsite_user_c_site_uid foreign key (si
|
||||
create index ix_bsite_user_c_user_uid on bsite_user_c (user_uid);
|
||||
alter table bsite_user_c add constraint fk_bsite_user_c_user_uid foreign key (user_uid) references buser (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_bsite_user_dmany_bsite_user_d on bsite_user_dmany (site_id,user_id);
|
||||
alter table bsite_user_dmany add constraint fk_bsite_user_dmany_bsite_user_d foreign key (site_id,user_id) references bsite_user_d (site_id,user_id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_bsite_user_e_site_id on bsite_user_e (site_id);
|
||||
alter table bsite_user_e add constraint fk_bsite_user_e_site_id foreign key (site_id) references bsite (id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4307,6 +4485,8 @@ alter table coone_many add constraint fk_coone_many_coone_id foreign key (coone_
|
||||
|
||||
alter table coroot add constraint fk_coroot_one_id foreign key (one_id) references coone (id) on delete restrict on update restrict;
|
||||
|
||||
alter table calcd_data add constraint fk_calcd_data_id foreign key (id) references calcd_input (id) on delete cascade on update restrict;
|
||||
|
||||
create index ix_calculation_result_product_configuration_id on calculation_result (product_configuration_id);
|
||||
alter table calculation_result add constraint fk_calculation_result_product_configuration_id foreign key (product_configuration_id) references configuration (id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4403,10 +4583,10 @@ alter table dc_detail add constraint fk_dc_detail_master_id foreign key (master_
|
||||
alter table defaults_model add constraint fk_defaults_model_id foreign key (id) references defaults_model_draft (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_dfk_cascade_one_id on dfk_cascade (one_id);
|
||||
alter table dfk_cascade add constraint fk_dfk_cascade_one_id foreign key (one_id) references dfk_cascade_one (id) on delete cascade on update cascade;
|
||||
alter table dfk_cascade add constraint fk_dfk_cascade_one_id foreign key (one_id) references dfk_cascade_one (id) on delete cascade on update restrict;
|
||||
|
||||
create index ix_dfk_set_null_one_id on dfk_set_null (one_id);
|
||||
alter table dfk_set_null add constraint fk_dfk_set_null_one_id foreign key (one_id) references dfk_one (id) on delete set null on update set null;
|
||||
alter table dfk_set_null add constraint fk_dfk_set_null_one_id foreign key (one_id) references dfk_one (id) on delete set null on update restrict;
|
||||
|
||||
alter table doc add constraint fk_doc_id foreign key (id) references doc_draft (id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4497,6 +4677,14 @@ alter table esoft_del_user_esoft_del_role add constraint fk_esoft_del_user_esoft
|
||||
create index ix_esoft_del_user_esoft_del_role_esoft_del_role on esoft_del_user_esoft_del_role (esoft_del_role_id);
|
||||
alter table esoft_del_user_esoft_del_role add constraint fk_esoft_del_user_esoft_del_role_esoft_del_role foreign key (esoft_del_role_id) references esoft_del_role (id) on delete restrict on update restrict;
|
||||
|
||||
alter table esoft_del_x add constraint fk_esoft_del_x_y_id foreign key (y_id) references esoft_del_y (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_esoft_del_x_organization_id on esoft_del_x (organization_id);
|
||||
alter table esoft_del_x add constraint fk_esoft_del_x_organization_id foreign key (organization_id) references esoft_del_z (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_esoft_del_y_organization_id on esoft_del_y (organization_id);
|
||||
alter table esoft_del_y add constraint fk_esoft_del_y_organization_id foreign key (organization_id) references esoft_del_z (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_rawinherit_uncle_parent_id on rawinherit_uncle (parent_id);
|
||||
alter table rawinherit_uncle add constraint fk_rawinherit_uncle_parent_id foreign key (parent_id) references rawinherit_parent (id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4737,6 +4925,12 @@ alter table mny_b_mny_c add constraint fk_mny_b_mny_c_mny_b foreign key (mny_b_i
|
||||
create index ix_mny_b_mny_c_mny_c on mny_b_mny_c (mny_c_id);
|
||||
alter table mny_b_mny_c add constraint fk_mny_b_mny_c_mny_c foreign key (mny_c_id) references mny_c (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_mny_edge_from_id on mny_edge (from_id);
|
||||
alter table mny_edge add constraint fk_mny_edge_from_id foreign key (from_id) references mny_node (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_mny_edge_to_id on mny_edge (to_id);
|
||||
alter table mny_edge add constraint fk_mny_edge_to_id foreign key (to_id) references mny_node (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_subtopics_mny_topic_1 on subtopics (topic);
|
||||
alter table subtopics add constraint fk_subtopics_mny_topic_1 foreign key (topic) references mny_topic (id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4791,6 +4985,9 @@ alter table om_account_child_dbo add constraint fk_om_account_child_dbo_banana_r
|
||||
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;
|
||||
|
||||
create index ix_om_bean_list_child_parent_id on om_bean_list_child (parent_id);
|
||||
alter table om_bean_list_child add constraint fk_om_bean_list_child_parent_id foreign key (parent_id) references om_bean_list_parent (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_om_ordered_detail_master_id on om_ordered_detail (master_id);
|
||||
alter table om_ordered_detail add constraint fk_om_ordered_detail_master_id foreign key (master_id) references om_ordered_master (id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4944,6 +5141,9 @@ alter table referenced_defaults_model_draft add constraint fk_referenced_default
|
||||
create index ix_rel_master_detail_id on rel_master (detail_id);
|
||||
alter table rel_master add constraint fk_rel_master_detail_id foreign key (detail_id) references rel_detail (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_app_config_re_config_id on app_config_re (config_id);
|
||||
alter table app_config_re add constraint fk_app_config_re_config_id foreign key (config_id) references app_config (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_resourcefile_parentresourcefileid on resourcefile (parentresourcefileid);
|
||||
alter table resourcefile add constraint fk_resourcefile_parentresourcefileid foreign key (parentresourcefileid) references resourcefile (id) on delete restrict on update restrict;
|
||||
|
||||
@@ -4964,6 +5164,12 @@ alter table f_second add constraint fk_f_second_first foreign key (first) refere
|
||||
create index ix_section_article_id on section (article_id);
|
||||
alter table section add constraint fk_section_article_id foreign key (article_id) references article (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_self_many_bridge_self_many_many_1 on self_many_bridge (self_1_id);
|
||||
alter table self_many_bridge add constraint fk_self_many_bridge_self_many_many_1 foreign key (self_1_id) references self_many_many (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_self_many_bridge_self_many_many_2 on self_many_bridge (self_2_id);
|
||||
alter table self_many_bridge add constraint fk_self_many_bridge_self_many_many_2 foreign key (self_2_id) references self_many_many (id) on delete restrict on update restrict;
|
||||
|
||||
create index ix_self_parent_parent_id on self_parent (parent_id);
|
||||
alter table self_parent add constraint fk_self_parent_parent_id foreign key (parent_id) references self_parent (id) on delete restrict on update restrict;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-- Generated by ebean unknown at 2021-02-12T03:32:14.253435800Z
|
||||
-- Generated by ebean unknown at 2021-08-20T21:43:22.648422335Z
|
||||
alter table bar drop constraint if exists fk_bar_foo_id;
|
||||
drop index if exists ix_bar_foo_id;
|
||||
|
||||
@@ -19,6 +19,9 @@ alter table album drop constraint if exists fk_album_cover_id;
|
||||
alter table animal drop constraint if exists fk_animal_shelter_id;
|
||||
drop index if exists ix_animal_shelter_id;
|
||||
|
||||
alter table app_config_control drop constraint if exists fk_app_config_control_config_id;
|
||||
drop index if exists ix_app_config_control_config_id;
|
||||
|
||||
alter table attribute drop constraint if exists fk_attribute_attribute_holder_id;
|
||||
drop index if exists ix_attribute_attribute_holder_id;
|
||||
|
||||
@@ -46,6 +49,9 @@ drop index if exists ix_bsite_user_c_site_uid;
|
||||
alter table bsite_user_c drop constraint if exists fk_bsite_user_c_user_uid;
|
||||
drop index if exists ix_bsite_user_c_user_uid;
|
||||
|
||||
alter table bsite_user_dmany drop constraint if exists fk_bsite_user_dmany_bsite_user_d;
|
||||
drop index if exists ix_bsite_user_dmany_bsite_user_d;
|
||||
|
||||
alter table bsite_user_e drop constraint if exists fk_bsite_user_e_site_id;
|
||||
drop index if exists ix_bsite_user_e_site_id;
|
||||
|
||||
@@ -84,6 +90,8 @@ drop index if exists ix_coone_many_coone_id;
|
||||
|
||||
alter table coroot drop constraint if exists fk_coroot_one_id;
|
||||
|
||||
alter table calcd_data drop constraint if exists fk_calcd_data_id;
|
||||
|
||||
alter table calculation_result drop constraint if exists fk_calculation_result_product_configuration_id;
|
||||
drop index if exists ix_calculation_result_product_configuration_id;
|
||||
|
||||
@@ -274,6 +282,14 @@ drop index if exists ix_esoft_del_user_esoft_del_role_esoft_del_user;
|
||||
alter table esoft_del_user_esoft_del_role drop constraint if exists fk_esoft_del_user_esoft_del_role_esoft_del_role;
|
||||
drop index if exists ix_esoft_del_user_esoft_del_role_esoft_del_role;
|
||||
|
||||
alter table esoft_del_x drop constraint if exists fk_esoft_del_x_y_id;
|
||||
|
||||
alter table esoft_del_x drop constraint if exists fk_esoft_del_x_organization_id;
|
||||
drop index if exists ix_esoft_del_x_organization_id;
|
||||
|
||||
alter table esoft_del_y drop constraint if exists fk_esoft_del_y_organization_id;
|
||||
drop index if exists ix_esoft_del_y_organization_id;
|
||||
|
||||
alter table rawinherit_uncle drop constraint if exists fk_rawinherit_uncle_parent_id;
|
||||
drop index if exists ix_rawinherit_uncle_parent_id;
|
||||
|
||||
@@ -514,6 +530,12 @@ drop index if exists ix_mny_b_mny_c_mny_b;
|
||||
alter table mny_b_mny_c drop constraint if exists fk_mny_b_mny_c_mny_c;
|
||||
drop index if exists ix_mny_b_mny_c_mny_c;
|
||||
|
||||
alter table mny_edge drop constraint if exists fk_mny_edge_from_id;
|
||||
drop index if exists ix_mny_edge_from_id;
|
||||
|
||||
alter table mny_edge drop constraint if exists fk_mny_edge_to_id;
|
||||
drop index if exists ix_mny_edge_to_id;
|
||||
|
||||
alter table subtopics drop constraint if exists fk_subtopics_mny_topic_1;
|
||||
drop index if exists ix_subtopics_mny_topic_1;
|
||||
|
||||
@@ -568,6 +590,9 @@ drop index if exists ix_om_account_child_dbo_banana_rama_id;
|
||||
alter table om_basic_child drop constraint if exists fk_om_basic_child_parent_id;
|
||||
drop index if exists ix_om_basic_child_parent_id;
|
||||
|
||||
alter table om_bean_list_child drop constraint if exists fk_om_bean_list_child_parent_id;
|
||||
drop index if exists ix_om_bean_list_child_parent_id;
|
||||
|
||||
alter table om_ordered_detail drop constraint if exists fk_om_ordered_detail_master_id;
|
||||
drop index if exists ix_om_ordered_detail_master_id;
|
||||
|
||||
@@ -721,6 +746,9 @@ drop index if exists ix_referenced_defaults_model_draft_defaults_model_id;
|
||||
alter table rel_master drop constraint if exists fk_rel_master_detail_id;
|
||||
drop index if exists ix_rel_master_detail_id;
|
||||
|
||||
alter table app_config_re drop constraint if exists fk_app_config_re_config_id;
|
||||
drop index if exists ix_app_config_re_config_id;
|
||||
|
||||
alter table resourcefile drop constraint if exists fk_resourcefile_parentresourcefileid;
|
||||
drop index if exists ix_resourcefile_parentresourcefileid;
|
||||
|
||||
@@ -741,6 +769,12 @@ alter table f_second drop constraint if exists fk_f_second_first;
|
||||
alter table section drop constraint if exists fk_section_article_id;
|
||||
drop index if exists ix_section_article_id;
|
||||
|
||||
alter table self_many_bridge drop constraint if exists fk_self_many_bridge_self_many_many_1;
|
||||
drop index if exists ix_self_many_bridge_self_many_many_1;
|
||||
|
||||
alter table self_many_bridge drop constraint if exists fk_self_many_bridge_self_many_many_2;
|
||||
drop index if exists ix_self_many_bridge_self_many_many_2;
|
||||
|
||||
alter table self_parent drop constraint if exists fk_self_parent_parent_id;
|
||||
drop index if exists ix_self_parent_parent_id;
|
||||
|
||||
@@ -893,6 +927,10 @@ drop table if exists animal;
|
||||
|
||||
drop table if exists animal_shelter;
|
||||
|
||||
drop table if exists app_config;
|
||||
|
||||
drop table if exists app_config_control;
|
||||
|
||||
drop table if exists article;
|
||||
|
||||
drop table if exists attribute;
|
||||
@@ -919,6 +957,8 @@ drop table if exists bsite_user_c;
|
||||
|
||||
drop table if exists bsite_user_d;
|
||||
|
||||
drop table if exists bsite_user_dmany;
|
||||
|
||||
drop table if exists bsite_user_e;
|
||||
|
||||
drop table if exists buser;
|
||||
@@ -966,6 +1006,10 @@ drop table if exists coone_many;
|
||||
|
||||
drop table if exists coroot;
|
||||
|
||||
drop table if exists calcd_data;
|
||||
|
||||
drop table if exists calcd_input;
|
||||
|
||||
drop table if exists calculation_result;
|
||||
|
||||
drop table if exists cao_bean;
|
||||
@@ -1143,6 +1187,8 @@ drop table if exists ebasic_json_map_json_b;
|
||||
|
||||
drop table if exists ebasic_json_map_varchar;
|
||||
|
||||
drop table if exists ebasic_json_multi;
|
||||
|
||||
drop table if exists ebasic_json_node;
|
||||
|
||||
drop table if exists ebasic_json_node_blob;
|
||||
@@ -1159,6 +1205,10 @@ drop table if exists e_basic_ndc;
|
||||
|
||||
drop table if exists ebasic_no_sdchild;
|
||||
|
||||
drop table if exists ebasic_old_value;
|
||||
|
||||
drop table if exists ebasic_plain;
|
||||
|
||||
drop table if exists ebasic_sdchild;
|
||||
|
||||
drop table if exists ebasic_soft_delete;
|
||||
@@ -1249,6 +1299,12 @@ drop table if exists esoft_del_user;
|
||||
|
||||
drop table if exists esoft_del_user_esoft_del_role;
|
||||
|
||||
drop table if exists esoft_del_x;
|
||||
|
||||
drop table if exists esoft_del_y;
|
||||
|
||||
drop table if exists esoft_del_z;
|
||||
|
||||
drop table if exists esome_convert_type;
|
||||
|
||||
drop table if exists esome_type;
|
||||
@@ -1573,6 +1629,10 @@ drop table if exists mny_b_mny_c;
|
||||
|
||||
drop table if exists mny_c;
|
||||
|
||||
drop table if exists mny_edge;
|
||||
|
||||
drop table if exists mny_node;
|
||||
|
||||
drop table if exists mny_topic;
|
||||
|
||||
drop table if exists subtopics;
|
||||
@@ -1637,6 +1697,10 @@ drop table if exists om_basic_child;
|
||||
|
||||
drop table if exists om_basic_parent;
|
||||
|
||||
drop table if exists om_bean_list_child;
|
||||
|
||||
drop table if exists om_bean_list_parent;
|
||||
|
||||
drop table if exists om_ordered_detail;
|
||||
|
||||
drop table if exists om_ordered_master;
|
||||
@@ -1783,6 +1847,8 @@ drop table if exists person_cache_email;
|
||||
|
||||
drop table if exists person_cache_info;
|
||||
|
||||
drop table if exists person_other;
|
||||
|
||||
drop table if exists persona;
|
||||
|
||||
drop table if exists phones;
|
||||
@@ -1815,6 +1881,8 @@ drop table if exists rel_detail;
|
||||
|
||||
drop table if exists rel_master;
|
||||
|
||||
drop table if exists app_config_re;
|
||||
|
||||
drop table if exists resourcefile;
|
||||
|
||||
drop table if exists mt_role;
|
||||
@@ -1829,6 +1897,10 @@ drop table if exists f_second;
|
||||
|
||||
drop table if exists section;
|
||||
|
||||
drop table if exists self_many_many;
|
||||
|
||||
drop table if exists self_many_bridge;
|
||||
|
||||
drop table if exists self_parent;
|
||||
|
||||
drop table if exists self_ref_customer;
|
||||
@@ -1901,6 +1973,8 @@ drop table if exists mt_tenant;
|
||||
|
||||
drop table if exists test_annotation_base_entity;
|
||||
|
||||
drop table if exists test_jakarta_annotation_base_entity;
|
||||
|
||||
drop table if exists tire;
|
||||
drop sequence if exists tire_seq;
|
||||
|
||||
|
||||
Reference in new issue
Block a user