projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Working on a step-by-step workflow audit.
[selectricity]
/
db
/
create.sql
diff --git
a/db/create.sql
b/db/create.sql
index 0b9b74e94e926b2b75128d4fa003f131995ad85c..4a2025f01ff542b820f699d40b5d48ad0586eae8 100644
(file)
--- a/
db/create.sql
+++ b/
db/create.sql
@@
-24,7
+24,9
@@
create table elections (
anonymous tinyint NOT NULL DEFAULT 0,
startdate datetime NOT NULL,
enddate datetime,
anonymous tinyint NOT NULL DEFAULT 0,
startdate datetime NOT NULL,
enddate datetime,
- primary key (id)
+ user_id int NOT NULL,
+ primary key (id),
+ constraint fk_user_election foreign key (user_id) references users(id)
);
# CREATE candidates TABLE
);
# CREATE candidates TABLE
@@
-35,6
+37,7
@@
create table candidates (
id int NOT NULL auto_increment,
election_id int NOT NULL,
name varchar(100) NOT NULL,
id int NOT NULL auto_increment,
election_id int NOT NULL,
name varchar(100) NOT NULL,
+ description text NULL,
picture blob NOT NULL,
primary key (id)
);
picture blob NOT NULL,
primary key (id)
);
Benjamin Mako Hill
||
Want to submit a patch?