Add to test schemas
This commit is contained in:
parent
bbd9277e0e
commit
2ba5371cb6
2 changed files with 49 additions and 10 deletions
testdata
20
testdata/mysql_test_schema.sql
vendored
20
testdata/mysql_test_schema.sql
vendored
|
@ -181,3 +181,23 @@ create table elephants (
|
|||
foreign key (tiger_id) references tigers (id)
|
||||
);
|
||||
|
||||
create table wolves (
|
||||
id binary primary key,
|
||||
name binary not null,
|
||||
tiger_id binary not null unique,
|
||||
foreign key (tiger_id) references tigers (id)
|
||||
);
|
||||
|
||||
create table ants (
|
||||
id binary primary key,
|
||||
name binary not null,
|
||||
tiger_id binary not null,
|
||||
foreign key (tiger_id) references tigers (id)
|
||||
);
|
||||
|
||||
create table worms (
|
||||
id binary primary key,
|
||||
name binary not null,
|
||||
tiger_id binary null,
|
||||
foreign key (tiger_id) references tigers (id)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue