Commit bd13eceb authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections script de création de la bdd.

parent a15d657f
Pipeline #3560 failed with stages
in 2 minutes and 8 seconds
......@@ -95,4 +95,4 @@ INSERT INTO user (username, email, display_name, password, state) VALUES
('demo', 'demo@mail.fr', 'Demo', '$2y$10$PxXnVLYnGEzEnfqPqRKJSe9AabocES2H4bBK5VzzJlzuj1rVt7Lwu', 1);
INSERT INTO user_role_linker(user_id, role_id)
SELECT u.id, r.id FROM user u, user_role r WHERE u.username = 'admin' and r.role_id = 'Standard';
SELECT u.id, r.id FROM user u, user_role r WHERE u.username = 'demo' and r.role_id = 'Standard';
......@@ -99,4 +99,4 @@ INSERT INTO user (username, email, display_name, password, state) VALUES
('demo', 'demo@mail.fr', 'Demo', '$2y$10$PxXnVLYnGEzEnfqPqRKJSe9AabocES2H4bBK5VzzJlzuj1rVt7Lwu', 1);
INSERT INTO user_role_linker(user_id, role_id)
SELECT u.id, r.id FROM user u, user_role r WHERE u.username = 'admin' and r.role_id = 'Standard';
SELECT u.id, r.id FROM user u, user_role r WHERE u.username = 'demo' and r.role_id = 'Standard';
......@@ -58,7 +58,7 @@ INSERT INTO "USER" (username, email, display_name, password, state) VALUES
('demo', 'demo@mail.fr', 'Demo', '$2y$10$PxXnVLYnGEzEnfqPqRKJSe9AabocES2H4bBK5VzzJlzuj1rVt7Lwu', 1);
INSERT INTO USER_ROLE_LINKER(user_id, role_id)
SELECT u.id, r.id FROM "USER" u, user_role r WHERE u.username = 'admin' and r.role_id = 'Standard';
SELECT u.id, r.id FROM "USER" u, user_role r WHERE u.username = 'demo' and r.role_id = 'Standard';
......
......@@ -92,4 +92,4 @@ INSERT INTO "user" (username, email, display_name, password, state) VALUES
('demo', 'demo@mail.fr', 'Demo', '$2y$10$PxXnVLYnGEzEnfqPqRKJSe9AabocES2H4bBK5VzzJlzuj1rVt7Lwu', 1);
INSERT INTO user_role_linker(user_id, role_id)
SELECT u.id, r.id FROM "user" u, user_role r WHERE u.username = 'admin' and r.role_id = 'Standard';
SELECT u.id, r.id FROM "user" u, user_role r WHERE u.username = 'demo' and r.role_id = 'Standard';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment