Skip to content

Commit

Permalink
Regenerated migration scripts again
Browse files Browse the repository at this point in the history
  • Loading branch information
rPraml committed Jun 14, 2023
1 parent d823873 commit 7761067
Show file tree
Hide file tree
Showing 74 changed files with 795 additions and 795 deletions.
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_test_binary (
id UInt32,
test_byte16 String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1672735407, 1.0__initial.sql
-1952315279, 1.1.sql
193400547, 1.0__initial.sql
1036221356, 1.1.sql
688811494, 1.2__dropsFor_1.1.sql
1015552567, 1.3.sql
-252580551, 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_test_binary (
id integer generated by default as identity not null,
test_byte16 bytea,
Expand Down Expand Up @@ -186,6 +208,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
-187679618, 1.1.sql
1434934404, 1.0__initial.sql
-1445091875, 1.1.sql
856096334, 1.2__dropsFor_1.1.sql
-279468991, 1.3.sql
-1398154763, 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_test_binary (
id integer generated by default as identity not null,
test_byte16 varbinary(16),
Expand Down Expand Up @@ -306,6 +328,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
-353204789, 1.1.sql
-1467839063, 1.0__initial.sql
1392865974, 1.1.sql
-1187336846, 1.2__dropsFor_1.1.sql
-1811865535, 1.3.sql
1864105401, 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_test_binary (
id integer auto_increment not null,
test_byte16 varbinary(16),
Expand Down Expand Up @@ -189,6 +211,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
308473502, 1.1.sql
-1547037623, 1.0__initial.sql
275373095, 1.1.sql
688811494, 1.2__dropsFor_1.1.sql
674925120, 1.3.sql
-252580551, 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

0 comments on commit 7761067

Please sign in to comment.