diff options
author | ubq323 <ubq323> | 2021-06-26 00:07:10 +0000 |
---|---|---|
committer | ubq323 <ubq323> | 2021-06-26 00:07:10 +0000 |
commit | ccb0394a52050f21701c856239f999ede529f71b (patch) | |
tree | cdb365ea94bf58f51feabd69ee12b48d6e30ffc6 /apioforum/db.py | |
parent | 3b31c84972d566bc6de569e1df9e96cf7e239f23 (diff) |
voting now works
Diffstat (limited to 'apioforum/db.py')
-rw-r--r-- | apioforum/db.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apioforum/db.py b/apioforum/db.py index 271ab75..1faa167 100644 --- a/apioforum/db.py +++ b/apioforum/db.py @@ -104,6 +104,7 @@ CREATE TABLE votes ( poll INTEGER NOT NULL, option_idx INTEGER NOT NULL, time TIMESTAMP NOT NULL, + current INTEGER NOT NULL, FOREIGN KEY ( poll, option_idx ) REFERENCES poll_options(poll, option_idx) ); ALTER TABLE posts ADD COLUMN vote INTEGER REFERENCES votes(id); |