X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=schema.sql;h=20ddccb955bc2d7cb17f63c1ded302e55eb14241;hb=ceddf4b06d5bc343c8de8016ead00ab99abdfeac;hp=f03e176fb83fb771abd9267e4e12f5e940362900;hpb=b0b79d217bb08211defdaacb87946253e124310d;p=cavote.git diff --git a/schema.sql b/schema.sql index f03e176..20ddccb 100644 --- a/schema.sql +++ b/schema.sql @@ -48,10 +48,10 @@ create table votes ( ); create table attachments ( + id INTEGER primary key autoincrement, url TEXT not null, id_vote INTEGER not null, - FOREIGN KEY(id_vote) REFERENCES vote(id), - PRIMARY KEY(url, id_vote) + FOREIGN KEY(id_vote) REFERENCES vote(id) ); create table choices (