Skip to content
Snippets Groups Projects
Commit 77393e8d authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Modified source table to not use timestamp type columns. Made taxonomy ID...

Modified source table to not use timestamp type columns. Made taxonomy ID primary key of species table
parent e0e5c1fe
No related branches found
No related tags found
No related merge requests found
......@@ -64,8 +64,8 @@ CREATE TABLE source (
source_id int unsigned not null auto_increment,
name varchar(255) not null,
url varchar(255),
file_modified_date timestamp(14) not null,
upload_date timestamp(14) not null,
file_modified_date datetime not null,
upload_date datetime not null,
release varchar(255),
PRIMARY KEY (source_id),
......@@ -77,14 +77,16 @@ CREATE TABLE source (
CREATE TABLE species (
species_id int unsigned not null auto_increment,
taxonomy_id int unsigned not null,
name varchar(255) not null,
PRIMARY KEY(species_id),
PRIMARY KEY(taxonomy_id),
KEY name_idx(name)
);
INSERT INTO species (taxonomy_id, name) VALUES (9606, 'homo_sapiens');
################################################################################
CREATE TABLE direct_xref (
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment