From 2869df30445fdb3eb312bb602c75aa73f80e7a25 Mon Sep 17 00:00:00 2001 From: HaGuesto Date: Sat, 2 May 2020 15:18:38 +0200 Subject: [PATCH] Update db demo seed staginenv users (#358) * Add Stagingenv Users * change id of Stock Overview menu * update stock overview id in cypress seed * add beneficiary menu section to seed --- db/seeds/Cypress.php | 8 ++++---- db/seeds/DemoDb.php | 25 ++++++++++++++----------- db/seeds/MinimalDb.php | 9 +++++---- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/db/seeds/Cypress.php b/db/seeds/Cypress.php index e72b26a5..2cc6c0cf 100644 --- a/db/seeds/Cypress.php +++ b/db/seeds/Cypress.php @@ -31,7 +31,7 @@ public function run() (111,100000000), (92,100000000), (90,100000000), - (165,100000000), + (160,100000000), (112,100000000), (96,100000000), (102,100000000), @@ -60,8 +60,8 @@ public function run() (110,100000002), (43,100000002), (156,100000002), - (165,100000002), - (165,100000000), + (160,100000002), + (160,100000000), (90,100000000), (87,100000000), (102,100000000), @@ -71,7 +71,7 @@ public function run() (110,100000000), (158,100000001), (90,100000001), - (165,100000001), + (160,100000001), (87,100000001), (102,100000001), (111,100000001), diff --git a/db/seeds/DemoDb.php b/db/seeds/DemoDb.php index a3b920a3..8fbb2ad7 100644 --- a/db/seeds/DemoDb.php +++ b/db/seeds/DemoDb.php @@ -54,13 +54,13 @@ public function run() (145,1), (146,1), (158,1), - (165,1), + (160,1), (67,2), (90,2), (110,2), (112,2), (115,2), - (165,2), + (160,2), (67,3), (87,3), (92,3), @@ -127,7 +127,7 @@ public function run() (146,1), (156,1), (158,1), - (165,1), + (160,1), (43,2), (67,2), (87,2), @@ -144,11 +144,11 @@ public function run() (145,2), (146,2), (158,2), - (165,2), + (160,2), (90,3), (110,3), (112,3), - (165,3), + (160,3), (87,4), (96,4), (102,4), @@ -171,7 +171,7 @@ public function run() (145,6), (146,6), (158,6), - (165,6), + (160,6), (43,10), (67,10), (87,10), @@ -187,14 +187,14 @@ public function run() (130,10), (156,10), (158,10), - (165,10), + (160,10), (43,11), (67,11), (90,11), (110,11), (112,11), (115,11), - (165,11), + (160,11), (43,12), (67,12), (87,12), @@ -209,7 +209,7 @@ public function run() (90,13), (110,13), (112,13), - (165,13), + (160,13), (87,14), (96,14), (102,14), @@ -231,7 +231,7 @@ public function run() (118,15), (130,15), (158,15), - (165,15), + (160,15), (87,16), (90,16), (96,16), @@ -241,12 +241,15 @@ public function run() (118,16), (130,16), (158,16), - (165,16);'); + (160,16);'); //------------------- cms_users $this->execute("INSERT INTO `cms_users` (`id`, `pass`, `naam`, `organisation_id`,`email`, `is_admin`, `resetpassword`, `language`, `deleted`, `cms_usergroups_id`, `valid_firstday`, `valid_lastday`) VALUES (2,'5f4dcc3b5aa765d61d8327deb882cf99','Jane Doe',1,'jane.doe@boxaid.co',0,NULL,2,'0000-00-00 00:00:00',1,'0000-00-00','0000-00-00'), (3,'5f4dcc3b5aa765d61d8327deb882cf99','Joe Doe',1,'joe.doe@boxaid.co',0,NULL,2,'0000-00-00 00:00:00',2,'0000-00-00','0000-00-00'), + (4,'561f17d01f24d21ab28f9f44e3210cba','Volunteer',1,'stagingenv_volunteer@boxwise.co',0,NULL,2,'0000-00-00 00:00:00',3,'0000-00-00','0000-00-00'), + (5,'06620ab218abfb24a12798cfb2c260a3','Coordinator',1,'stagingenv_coordinator@boxwise.co',0,NULL,2,'0000-00-00 00:00:00',2,'0000-00-00','0000-00-00'), + (6,'06620ab218abfb24a12798cfb2c260a3','Head of Operations',1,'stagingenv_headofops@boxwise.co',0,NULL,2,'0000-00-00 00:00:00',1,'0000-00-00','0000-00-00'), (10,'5f4dcc3b5aa765d61d8327deb882cf99','Jane Doe',2,'jane.doe@boxcare.co',0,NULL,2,'0000-00-00 00:00:00',10,'0000-00-00','0000-00-00'), (11,'5f4dcc3b5aa765d61d8327deb882cf99','Joe Doe',2,'joe.doe@boxcare.co',0,NULL,2,'0000-00-00 00:00:00',11,'0000-00-00','0000-00-00'), (12,'5f4dcc3b5aa765d61d8327deb882cf99','Sam Sample',2,'sam.sample@boxcare.co',0,NULL,2,'0000-00-00 00:00:00',12,'0000-00-00','0000-00-00'), diff --git a/db/seeds/MinimalDb.php b/db/seeds/MinimalDb.php index 34fd0220..6e5d0912 100644 --- a/db/seeds/MinimalDb.php +++ b/db/seeds/MinimalDb.php @@ -40,9 +40,9 @@ public function run() (111,35,'Generate market schedule','market_schedule',6,0,0,1,0,0), (112,99,'Generate QR labels','qr',14,0,0,1,0,0), (113,NULL,'Actions','',6,0,0,1,0,0), - (115,42,'Warehouses','locations',21,0,0,1,0,0), + (115,42,'Warehouses','locations',19,0,0,1,0,0), (116,110,'Containers List','printed_list_containers',2,0,0,1,1,0), - (118,35,'Manage beneficiaries','people',4,0,0,1,0,0), + (118,161,'Manage beneficiaries','people',4,0,0,1,0,0), (121,NULL,'Hidden menu items','',9,0,0,0,1,0), (123,121,'Start page','start',27,0,0,0,1,0), (124,92,'Give tokens to selected families','give',3,0,0,1,1,0), @@ -67,8 +67,9 @@ public function run() (155,NULL,'Boxwise Gods','',8,0,1,1,0,0), (156,42,'User groups','cms_usergroups',20,0,0,1,0,1), (157,155,'Bases','camps',22,0,1,1,0,1), - (158,35,'Add beneficiary','people_add',3,0,0,1,0,0), - (165,99,'Stock Overview (beta)','stock_overview',14,0,0,1,0,0);"); + (158,161,'Add beneficiary','people_add',3,0,0,1,0,0), + (160,99,'Stock Overview (beta)','stock_overview',13,0,0,1,0,0), + (161,NULL,'Beneficiaries','',0,0,0,1,0,0);"); $this->execute('SET FOREIGN_KEY_CHECKS=1;'); //------------------- cms_settings