create table groups (
id INTEGER primary key autoincrement,
- name TEXT,
+ name TEXT unique not null,
system INTEGER default 0 not null
);
is_multiplechoice INTEGER default 1 not null,
is_weighted INTEGER default 0 not null,
is_open INTEGER default 0 not null,
+ is_terminated INTEGER default 0 not null,
id_author INTEGER, -- :COMMENT:maethor:120528: not null ?
id_group INTEGER default 1 not null,
FOREIGN KEY(id_author) REFERENCES users(id)
insert into users (email, password, name, organization, is_admin, key) values ("admin@admin.fr", "d033e22ae348aeb5660fc2140aec35850c4da997", "Toto (admin) Tata", "World corp", 1, "test"); -- mdp = admin
insert into groups (id, name, system) values (1, "Tous", 1);
insert into groups (name) values ("CA");
-insert into groups (name) values ("Members");
+insert into groups (name) values ("Membres");