mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-21 08:56:22 +00:00
fixed test case
This commit is contained in:
+8
-8
@@ -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;
|
||||
|
||||
|
||||
+8
-8
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user