Skip to content
Snippets Groups Projects
Commit b0075493 authored by Rhys Nute's avatar Rhys Nute
Browse files

foreign keys

parent ca04f626
Branches foreignkeys
No related tags found
No related merge requests found
...@@ -2,8 +2,7 @@ drop table if exists trails; ...@@ -2,8 +2,7 @@ drop table if exists trails;
create table if not exists trails create table if not exists trails
( (
trailID bigint auto_increment primary key, trailID bigint auto_increment primary key,
name varchar(128), name varchar(128)
FOREIGN KEY (trailID) REFERENCES locations(trailID)
) engine=InnoDB; ) engine=InnoDB;
drop table if exists locations; drop table if exists locations;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment