Skip to content

Commit

Permalink
Update db demo seed staginenv users (#358)
Browse files Browse the repository at this point in the history
* Add Stagingenv Users

* change id of Stock Overview menu

* update stock overview id in cypress seed

* add beneficiary menu section to seed
  • Loading branch information
HaGuesto authored May 2, 2020
1 parent 2bef005 commit 2869df3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
8 changes: 4 additions & 4 deletions db/seeds/Cypress.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function run()
(111,100000000),
(92,100000000),
(90,100000000),
(165,100000000),
(160,100000000),
(112,100000000),
(96,100000000),
(102,100000000),
Expand Down Expand Up @@ -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),
Expand All @@ -71,7 +71,7 @@ public function run()
(110,100000000),
(158,100000001),
(90,100000001),
(165,100000001),
(160,100000001),
(87,100000001),
(102,100000001),
(111,100000001),
Expand Down
25 changes: 14 additions & 11 deletions db/seeds/DemoDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -127,7 +127,7 @@ public function run()
(146,1),
(156,1),
(158,1),
(165,1),
(160,1),
(43,2),
(67,2),
(87,2),
Expand All @@ -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),
Expand All @@ -171,7 +171,7 @@ public function run()
(145,6),
(146,6),
(158,6),
(165,6),
(160,6),
(43,10),
(67,10),
(87,10),
Expand All @@ -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),
Expand All @@ -209,7 +209,7 @@ public function run()
(90,13),
(110,13),
(112,13),
(165,13),
(160,13),
(87,14),
(96,14),
(102,14),
Expand All @@ -231,7 +231,7 @@ public function run()
(118,15),
(130,15),
(158,15),
(165,15),
(160,15),
(87,16),
(90,16),
(96,16),
Expand All @@ -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'),
Expand Down
9 changes: 5 additions & 4 deletions db/seeds/MinimalDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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
Expand Down

0 comments on commit 2869df3

Please sign in to comment.