Fixed migration data
This commit is contained in:
parent
7932350980
commit
2cff1d55f9
1 changed files with 8 additions and 15 deletions
|
@ -8,35 +8,28 @@ INSERT OR IGNORE INTO users(username, password)
|
|||
VALUES ("user2", "123");
|
||||
|
||||
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
|
||||
VALUES ("projecttest","test project", 1)
|
||||
VALUES ("projecttest","test project", 1);
|
||||
|
||||
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
|
||||
VALUES ("projecttest2","test project2", 1)
|
||||
VALUES ("projecttest2","test project2", 1);
|
||||
|
||||
INSERT OR IGNORE INTO projects(name,description,owner_user_id)
|
||||
VALUES ("projecttest3","test project3", 1)
|
||||
VALUES ("projecttest3","test project3", 1);
|
||||
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (1,1,"project_manager");
|
||||
|
||||
INSERT INTO user_roles(user_id,project_id,p_role)
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (2,1,"member");
|
||||
|
||||
INSERT INTO user_roles(user_id,project_id,p_role)
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (3,1,"member");
|
||||
|
||||
INSERT INTO user_roles(user_id,project_id,p_role)
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (3,2,"member");
|
||||
|
||||
INSERT INTO user_roles(user_id,project_id,p_role)
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (3,3,"member");
|
||||
|
||||
INSERT INTO user_roles(user_id,project_id,p_role)
|
||||
INSERT OR IGNORE INTO user_roles(user_id,project_id,p_role)
|
||||
VALUES (2,1,"project_manager");
|
||||
|
||||
|
||||
SELECT id FROM users WHERE username = "admin"
|
||||
|
||||
SELECT id FROM users WHERE username = "user"
|
||||
|
||||
SELECT id FROM users WHERE username = "user2"
|
||||
|
|
Loading…
Reference in a new issue