diff --git a/ebean-ddl-generator/src/test/resources/assert/ModelBuild_explicitSequencesTest/apply.sql b/ebean-ddl-generator/src/test/resources/assert/ModelBuild_explicitSequencesTest/apply.sql index bc0f0635f..a5900e800 100644 --- a/ebean-ddl-generator/src/test/resources/assert/ModelBuild_explicitSequencesTest/apply.sql +++ b/ebean-ddl-generator/src/test/resources/assert/ModelBuild_explicitSequencesTest/apply.sql @@ -1,11 +1,11 @@ -create table persons ( - id bigint generated by default as identity (start with 1000 increment by 40) not null, - surname varchar(64) not null, - name varchar(64) not null, - constraint pk_persons primary key (id) +create table PERSONS ( + ID bigint generated by default as identity (start with 1000 increment by 40) not null, + SURNAME varchar(64) not null, + NAME varchar(64) not null, + constraint pk_persons primary key (ID) ); -create table phones ( +create table PHONES ( id bigint generated by default as identity not null, phone_number varchar(7) not null, person_id bigint not null, @@ -14,6 +14,6 @@ create table phones ( ); -- foreign keys and indices -create index ix_phones_person_id on phones (person_id); -alter table phones add constraint fk_phones_person_id foreign key (person_id) references persons (id) on delete restrict on update restrict; +create index ix_phones_person_id on PHONES (person_id); +alter table PHONES add constraint fk_phones_person_id foreign key (person_id) references PERSONS (ID) on delete restrict on update restrict; diff --git a/ebean-ddl-generator/src/test/resources/assert/ModelBuild_explicitSequencesTest/pg-apply.sql b/ebean-ddl-generator/src/test/resources/assert/ModelBuild_explicitSequencesTest/pg-apply.sql index e0063a84e..5978992d3 100644 --- a/ebean-ddl-generator/src/test/resources/assert/ModelBuild_explicitSequencesTest/pg-apply.sql +++ b/ebean-ddl-generator/src/test/resources/assert/ModelBuild_explicitSequencesTest/pg-apply.sql @@ -1,11 +1,11 @@ -create table persons ( - id bigint generated by default as identity (start with 1000 increment by 40) not null, - surname varchar(64) not null, - name varchar(64) not null, - constraint pk_persons primary key (id) +create table PERSONS ( + ID bigint generated by default as identity (start with 1000 increment by 40) not null, + SURNAME varchar(64) not null, + NAME varchar(64) not null, + constraint pk_persons primary key (ID) ); -create table phones ( +create table PHONES ( id bigint generated by default as identity not null, phone_number varchar(7) not null, person_id bigint not null, @@ -14,6 +14,6 @@ create table phones ( ); -- foreign keys and indices -create index ix_phones_person_id on phones (person_id); -alter table phones add constraint fk_phones_person_id foreign key (person_id) references persons (id) on delete restrict on update restrict not valid; +create index ix_phones_person_id on PHONES (person_id); +alter table PHONES add constraint fk_phones_person_id foreign key (person_id) references PERSONS (ID) on delete restrict on update restrict not valid;