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

foreign keys

parent ca04f626
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,7 @@ drop table if exists trails;
create table if not exists trails
(
trailID bigint auto_increment primary key,
name varchar(128),
FOREIGN KEY (trailID) REFERENCES locations(trailID)
name varchar(128)
) engine=InnoDB;
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