|
@@ -42,7 +42,7 @@ create table user_group (
|
|
|
create table cardinals (
|
|
|
id INTEGER UNIQUE NOT NULL PRIMARY KEY,
|
|
|
name TEXT UNIQUE NOT NULL,
|
|
|
- first INTEGER NOT NULL
|
|
|
+ first INTEGER
|
|
|
);
|
|
|
|
|
|
create table values_ (
|
|
@@ -126,25 +126,3 @@ create table user_vote (
|
|
|
FOREIGN KEY(id_vote) REFERENCES votes (id) ON DELETE CASCADE,
|
|
|
PRIMARY KEY(id_user, id_vote)
|
|
|
);
|
|
|
-
|
|
|
-
|
|
|
-INSERT INTO users (id, email, password, openid, name, organization, is_admin, key)
|
|
|
-VALUES (1, "admin+cavote+1@localhost.localdomain", "", "", "admin1", "Organisation", 1, "victory");
|
|
|
-INSERT INTO users (id, email, password, openid, name, organization, is_admin, key)
|
|
|
-VALUES (2, "admin+cavote+2@localhost.localdomain", "", "", "admin2", "Organisation", 1, "victory");
|
|
|
-INSERT INTO users (id, email, password, openid, name, organization, is_admin, key)
|
|
|
-VALUES (3, "admin+cavote+3@localhost.localdomain", "", "", "admin3", "Organisation", 1, "victory");
|
|
|
-INSERT INTO users (id, email, password, openid, name, organization, is_admin, key)
|
|
|
-VALUES (4, "admin+cavote+4@localhost.localdomain", "", "", "admin4", "Organisation", 1, "victory");
|
|
|
-INSERT INTO users (id, email, password, openid, name, organization, is_admin, key)
|
|
|
-VALUES (4, "admin+cavote+5@localhost.localdomain", "", "", "admin5", "Organisation", 1, "victory");
|
|
|
-INSERT INTO groups (id, name, system) VALUES (1, "Tout le monde", 1);
|
|
|
-INSERT INTO groups (name) VALUES ("CA");
|
|
|
-INSERT INTO groups (name) VALUES ("Membres");
|
|
|
-INSERT INTO user_group (id_user, id_group) VALUES(1, 1);
|
|
|
-INSERT INTO user_group (id_user, id_group) VALUES(2, 1);
|
|
|
-INSERT INTO user_group (id_user, id_group) VALUES(3, 1);
|
|
|
-INSERT INTO user_group (id_user, id_group) VALUES(4, 1);
|
|
|
-INSERT INTO user_group (id_user, id_group) VALUES(5, 1);
|