SQL scripts that mostly handle the administration of databases and tables has been moved into database-primitives.go, and executed via the "runner" pattern that we came up with.
parent
1a16e1ba38
commit
96f4eae410
@ -0,0 +1,3 @@
|
||||
CREATE DATABASE IF NOT EXISTS mercury;
|
||||
CREATE DATABASE IF NOT EXISTS insight;
|
||||
CREATE DATABASE IF NOT EXISTS projects;
|
||||
@ -0,0 +1,22 @@
|
||||
CREATE TABLE IF NOT EXISTS picture_patterns(
|
||||
id int unique primary key auto_increment,
|
||||
pattern varchar(512),
|
||||
verified bool
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS picture_samples(
|
||||
id int unique primary key auto_increment,
|
||||
fileName varchar(512),
|
||||
verified bool
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS picture_timestamps(
|
||||
id int unique primary key auto_increment,
|
||||
project_name varchar(15),
|
||||
file_name varchar(512),
|
||||
time_stamp_taken datetime,
|
||||
time_stamp_uploaded datetime,
|
||||
uploader_id int default -1
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS picture_timestamps_refnum on picture_timestamps (project_name);
|
||||
Loading…
Reference in New Issue