Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No code change: Regenerated scripts #3108

Merged
merged 1 commit into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,6 @@ create table migtest_fk_set_null (
one_id UInt64
) ENGINE = Log();

create table drop_main (
id UInt32
) ENGINE = Log();

create table drop_main_drop_ref_many (
drop_main_id UInt32,
drop_ref_many_id UInt32
) ENGINE = Log();

create table drop_ref_many (
id UInt32
) ENGINE = Log();

create table drop_ref_one (
id UInt32,
parent_id UInt32
) ENGINE = Log();

create table migtest_e_basic (
id UInt32,
status String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,24 @@ alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest2;
alter table migtest_e_basic drop constraint uq_migtest_e_basic_indextest6;
alter table migtest_e_enum drop constraint if exists ck_migtest_e_enum_test_status;
-- apply changes
create table drop_main (
id UInt32
) ENGINE = Log();

create table drop_main_drop_ref_many (
drop_main_id UInt32,
drop_ref_many_id UInt32
) ENGINE = Log();

create table drop_ref_many (
id UInt32
) ENGINE = Log();

create table drop_ref_one (
id UInt32,
parent_id UInt32
) ENGINE = Log();

create table migtest_e_user (
id UInt32
) ENGINE = Log();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1672735407, 1.0__initial.sql
540706946, 1.1.sql
193400547, 1.0__initial.sql
-572177405, 1.1.sql
688811494, 1.2__dropsFor_1.1.sql
1015552567, 1.3.sql
677297367, 1.4__dropsFor_1.3.sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,6 @@ create table migtest_fk_set_null (
constraint pk_migtest_fk_set_null primary key (id)
);

create table drop_main (
id integer generated by default as identity not null,
constraint pk_drop_main primary key (id)
);

create table drop_main_drop_ref_many (
drop_main_id integer not null,
drop_ref_many_id integer not null,
constraint pk_drop_main_drop_ref_many primary key (drop_main_id,drop_ref_many_id)
);

create table drop_ref_many (
id integer generated by default as identity not null,
constraint pk_drop_ref_many primary key (id)
);

create table drop_ref_one (
id integer generated by default as identity not null,
parent_id integer,
constraint pk_drop_ref_one primary key (id)
);

create table migtest_e_basic (
id integer generated by default as identity not null,
status varchar(1),
Expand Down Expand Up @@ -215,15 +193,6 @@ alter table migtest_fk_cascade add constraint fk_migtest_fk_cascade_one_id forei
create index ix_migtest_fk_set_null_one_id on migtest_fk_set_null (one_id);
alter table migtest_fk_set_null add constraint fk_migtest_fk_set_null_one_id foreign key (one_id) references migtest_fk_one (id) on delete set null on update restrict;

create index ix_drop_main_drop_ref_many_drop_main on drop_main_drop_ref_many (drop_main_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_main foreign key (drop_main_id) references drop_main (id) on delete restrict on update restrict;

create index ix_drop_main_drop_ref_many_drop_ref_many on drop_main_drop_ref_many (drop_ref_many_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_ref_many foreign key (drop_ref_many_id) references drop_ref_many (id) on delete restrict on update restrict;

create index ix_drop_ref_one_parent_id on drop_ref_one (parent_id);
alter table drop_ref_one add constraint fk_drop_ref_one_parent_id foreign key (parent_id) references drop_main (id) on delete restrict on update restrict;

create index ix_migtest_e_basic_eref_id on migtest_e_basic (eref_id);
alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign key (eref_id) references migtest_e_ref (id) on delete restrict on update restrict;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,28 @@ drop index if exists ix_migtest_e_basic_indextest1;
drop index if exists ix_migtest_e_basic_indextest5;
drop index if exists ix_migtest_quoted_status1;
-- apply changes
create table drop_main (
id integer generated by default as identity not null,
constraint pk_drop_main primary key (id)
);

create table drop_main_drop_ref_many (
drop_main_id integer not null,
drop_ref_many_id integer not null,
constraint pk_drop_main_drop_ref_many primary key (drop_main_id,drop_ref_many_id)
);

create table drop_ref_many (
id integer generated by default as identity not null,
constraint pk_drop_ref_many primary key (id)
);

create table drop_ref_one (
id integer generated by default as identity not null,
parent_id integer,
constraint pk_drop_ref_one primary key (id)
);

create table migtest_e_user (
id integer generated by default as identity not null,
constraint pk_migtest_e_user primary key (id)
Expand Down Expand Up @@ -90,6 +112,15 @@ alter table migtest_e_basic add constraint uq_migtest_e_basic_indextest4 unique
alter table migtest_e_basic add constraint uq_migtest_e_basic_indextest5 unique (indextest5);
alter table "table" add constraint uq_table_select unique ("select");
-- foreign keys and indices
create index ix_drop_main_drop_ref_many_drop_main on drop_main_drop_ref_many (drop_main_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_main foreign key (drop_main_id) references drop_main (id) on delete restrict on update restrict;

create index ix_drop_main_drop_ref_many_drop_ref_many on drop_main_drop_ref_many (drop_ref_many_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_ref_many foreign key (drop_ref_many_id) references drop_ref_many (id) on delete restrict on update restrict;

create index ix_drop_ref_one_parent_id on drop_ref_one (parent_id);
alter table drop_ref_one add constraint fk_drop_ref_one_parent_id foreign key (parent_id) references drop_main (id) on delete restrict on update restrict;

create index ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c on migtest_mtm_c_migtest_mtm_m (migtest_mtm_c_id);
alter table migtest_mtm_c_migtest_mtm_m add constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c foreign key (migtest_mtm_c_id) references migtest_mtm_c (id) on delete restrict on update restrict;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1867456246, 1.0__initial.sql
1284257915, 1.1.sql
1434934404, 1.0__initial.sql
-1182436907, 1.1.sql
856096334, 1.2__dropsFor_1.1.sql
-279468991, 1.3.sql
2137365848, 1.4__dropsFor_1.3.sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,6 @@ create table migtest_fk_set_null (
constraint pk_migtest_fk_set_null primary key (id)
);

create table drop_main (
id integer generated by default as identity not null,
constraint pk_drop_main primary key (id)
);

create table drop_main_drop_ref_many (
drop_main_id integer not null,
drop_ref_many_id integer not null,
constraint pk_drop_main_drop_ref_many primary key (drop_main_id,drop_ref_many_id)
);

create table drop_ref_many (
id integer generated by default as identity not null,
constraint pk_drop_ref_many primary key (id)
);

create table drop_ref_one (
id integer generated by default as identity not null,
parent_id integer,
constraint pk_drop_ref_one primary key (id)
);

create table migtest_e_basic (
id integer generated by default as identity not null,
status varchar(1),
Expand Down Expand Up @@ -254,15 +232,6 @@ alter table migtest_fk_cascade add constraint fk_migtest_fk_cascade_one_id forei
create index ix_migtest_fk_set_null_one_id on migtest_fk_set_null (one_id);
alter table migtest_fk_set_null add constraint fk_migtest_fk_set_null_one_id foreign key (one_id) references migtest_fk_one (id) on delete set null on update restrict;

create index ix_drop_main_drop_ref_many_drop_main on drop_main_drop_ref_many (drop_main_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_main foreign key (drop_main_id) references drop_main (id) on delete restrict on update restrict;

create index ix_drop_main_drop_ref_many_drop_ref_many on drop_main_drop_ref_many (drop_ref_many_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_ref_many foreign key (drop_ref_many_id) references drop_ref_many (id) on delete restrict on update restrict;

create index ix_drop_ref_one_parent_id on drop_ref_one (parent_id);
alter table drop_ref_one add constraint fk_drop_ref_one_parent_id foreign key (parent_id) references drop_main (id) on delete restrict on update restrict;

create index ix_migtest_e_basic_eref_id on migtest_e_basic (eref_id);
alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign key (eref_id) references migtest_e_ref (id) on delete restrict on update restrict;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,28 @@ if exists (select indname from syscat.indexes where indschema = current_schema a
end if;
end$$;
-- apply changes
create table drop_main (
id integer generated by default as identity not null,
constraint pk_drop_main primary key (id)
);

create table drop_main_drop_ref_many (
drop_main_id integer not null,
drop_ref_many_id integer not null,
constraint pk_drop_main_drop_ref_many primary key (drop_main_id,drop_ref_many_id)
);

create table drop_ref_many (
id integer generated by default as identity not null,
constraint pk_drop_ref_many primary key (id)
);

create table drop_ref_one (
id integer generated by default as identity not null,
parent_id integer,
constraint pk_drop_ref_one primary key (id)
);

create table migtest_e_user (
id integer generated by default as identity not null,
constraint pk_migtest_e_user primary key (id)
Expand Down Expand Up @@ -210,6 +232,15 @@ comment on column "table"."index" is 'this is an other comment';
alter table "table" add versioning use history table table_history;
create unique index uq_table_select on "table"("select") exclude null keys;
-- foreign keys and indices
create index ix_drop_main_drop_ref_many_drop_main on drop_main_drop_ref_many (drop_main_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_main foreign key (drop_main_id) references drop_main (id) on delete restrict on update restrict;

create index ix_drop_main_drop_ref_many_drop_ref_many on drop_main_drop_ref_many (drop_ref_many_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_ref_many foreign key (drop_ref_many_id) references drop_ref_many (id) on delete restrict on update restrict;

create index ix_drop_ref_one_parent_id on drop_ref_one (parent_id);
alter table drop_ref_one add constraint fk_drop_ref_one_parent_id foreign key (parent_id) references drop_main (id) on delete restrict on update restrict;

create index ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c on migtest_mtm_c_migtest_mtm_m (migtest_mtm_c_id);
alter table migtest_mtm_c_migtest_mtm_m add constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c foreign key (migtest_mtm_c_id) references migtest_mtm_c (id) on delete restrict on update restrict;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-283216660, 1.0__initial.sql
-184000413, 1.1.sql
-1467839063, 1.0__initial.sql
300902032, 1.1.sql
-1187336846, 1.2__dropsFor_1.1.sql
-1811865535, 1.3.sql
-1255430844, 1.4__dropsFor_1.3.sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,6 @@ create table migtest_fk_set_null (
constraint pk_migtest_fk_set_null primary key (id)
);

create table drop_main (
id integer auto_increment not null,
constraint pk_drop_main primary key (id)
);

create table drop_main_drop_ref_many (
drop_main_id integer not null,
drop_ref_many_id integer not null,
constraint pk_drop_main_drop_ref_many primary key (drop_main_id,drop_ref_many_id)
);

create table drop_ref_many (
id integer auto_increment not null,
constraint pk_drop_ref_many primary key (id)
);

create table drop_ref_one (
id integer auto_increment not null,
parent_id integer,
constraint pk_drop_ref_one primary key (id)
);

create table migtest_e_basic (
id integer auto_increment not null,
status varchar(1),
Expand Down Expand Up @@ -216,15 +194,6 @@ alter table migtest_fk_cascade add constraint fk_migtest_fk_cascade_one_id forei
create index ix_migtest_fk_set_null_one_id on migtest_fk_set_null (one_id);
alter table migtest_fk_set_null add constraint fk_migtest_fk_set_null_one_id foreign key (one_id) references migtest_fk_one (id) on delete set null on update restrict;

create index ix_drop_main_drop_ref_many_drop_main on drop_main_drop_ref_many (drop_main_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_main foreign key (drop_main_id) references drop_main (id) on delete restrict on update restrict;

create index ix_drop_main_drop_ref_many_drop_ref_many on drop_main_drop_ref_many (drop_ref_many_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_ref_many foreign key (drop_ref_many_id) references drop_ref_many (id) on delete restrict on update restrict;

create index ix_drop_ref_one_parent_id on drop_ref_one (parent_id);
alter table drop_ref_one add constraint fk_drop_ref_one_parent_id foreign key (parent_id) references drop_main (id) on delete restrict on update restrict;

create index ix_migtest_e_basic_eref_id on migtest_e_basic (eref_id);
alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign key (eref_id) references migtest_e_ref (id) on delete restrict on update restrict;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,28 @@ drop index if exists ix_migtest_e_basic_indextest1;
drop index if exists ix_migtest_e_basic_indextest5;
drop index if exists ix_migtest_quoted_status1;
-- apply changes
create table drop_main (
id integer auto_increment not null,
constraint pk_drop_main primary key (id)
);

create table drop_main_drop_ref_many (
drop_main_id integer not null,
drop_ref_many_id integer not null,
constraint pk_drop_main_drop_ref_many primary key (drop_main_id,drop_ref_many_id)
);

create table drop_ref_many (
id integer auto_increment not null,
constraint pk_drop_ref_many primary key (id)
);

create table drop_ref_one (
id integer auto_increment not null,
parent_id integer,
constraint pk_drop_ref_one primary key (id)
);

create table migtest_e_user (
id integer auto_increment not null,
constraint pk_migtest_e_user primary key (id)
Expand Down Expand Up @@ -93,6 +115,15 @@ comment on table migtest_e_history is 'We have history now';
comment on column "table"."index" is 'this is an other comment';
alter table "table" add constraint uq_table_select unique ("select");
-- foreign keys and indices
create index ix_drop_main_drop_ref_many_drop_main on drop_main_drop_ref_many (drop_main_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_main foreign key (drop_main_id) references drop_main (id) on delete restrict on update restrict;

create index ix_drop_main_drop_ref_many_drop_ref_many on drop_main_drop_ref_many (drop_ref_many_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_ref_many foreign key (drop_ref_many_id) references drop_ref_many (id) on delete restrict on update restrict;

create index ix_drop_ref_one_parent_id on drop_ref_one (parent_id);
alter table drop_ref_one add constraint fk_drop_ref_one_parent_id foreign key (parent_id) references drop_main (id) on delete restrict on update restrict;

create index ix_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c on migtest_mtm_c_migtest_mtm_m (migtest_mtm_c_id);
alter table migtest_mtm_c_migtest_mtm_m add constraint fk_migtest_mtm_c_migtest_mtm_m_migtest_mtm_c foreign key (migtest_mtm_c_id) references migtest_mtm_c (id) on delete restrict on update restrict;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-528359263, 1.0__initial.sql
253988246, 1.1.sql
-1547037623, 1.0__initial.sql
647357251, 1.1.sql
688811494, 1.2__dropsFor_1.1.sql
674925120, 1.3.sql
677297367, 1.4__dropsFor_1.3.sql
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,6 @@ create table migtest_fk_set_null (
constraint pk_migtest_fk_set_null primary key (id)
);

create table drop_main (
id integer generated by default as identity not null,
constraint pk_drop_main primary key (id)
);

create table drop_main_drop_ref_many (
drop_main_id integer not null,
drop_ref_many_id integer not null,
constraint pk_drop_main_drop_ref_many primary key (drop_main_id,drop_ref_many_id)
);

create table drop_ref_many (
id integer generated by default as identity not null,
constraint pk_drop_ref_many primary key (id)
);

create table drop_ref_one (
id integer generated by default as identity not null,
parent_id integer,
constraint pk_drop_ref_one primary key (id)
);

create table migtest_e_basic (
id integer generated by default as identity not null,
status varchar(1),
Expand Down Expand Up @@ -254,15 +232,6 @@ alter table migtest_fk_cascade add constraint fk_migtest_fk_cascade_one_id forei
create index ix_migtest_fk_set_null_one_id on migtest_fk_set_null (one_id);
alter table migtest_fk_set_null add constraint fk_migtest_fk_set_null_one_id foreign key (one_id) references migtest_fk_one (id) on delete set null on update restrict;

create index ix_drop_main_drop_ref_many_drop_main on drop_main_drop_ref_many (drop_main_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_main foreign key (drop_main_id) references drop_main (id) on delete restrict on update restrict;

create index ix_drop_main_drop_ref_many_drop_ref_many on drop_main_drop_ref_many (drop_ref_many_id);
alter table drop_main_drop_ref_many add constraint fk_drop_main_drop_ref_many_drop_ref_many foreign key (drop_ref_many_id) references drop_ref_many (id) on delete restrict on update restrict;

create index ix_drop_ref_one_parent_id on drop_ref_one (parent_id);
alter table drop_ref_one add constraint fk_drop_ref_one_parent_id foreign key (parent_id) references drop_main (id) on delete restrict on update restrict;

create index ix_migtest_e_basic_eref_id on migtest_e_basic (eref_id);
alter table migtest_e_basic add constraint fk_migtest_e_basic_eref_id foreign key (eref_id) references migtest_e_ref (id) on delete restrict on update restrict;

Expand Down
Loading