From e12d29ad62da662f542e2db2eda0a607ae250979 Mon Sep 17 00:00:00 2001 From: Bernat Date: Thu, 28 Mar 2019 08:05:36 +0100 Subject: [PATCH] merge fixtures for zone --- db/dump/fixtures.sql | 66 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 65 insertions(+), 1 deletion(-) diff --git a/db/dump/fixtures.sql b/db/dump/fixtures.sql index bac6b0664..4d7f16540 100644 --- a/db/dump/fixtures.sql +++ b/db/dump/fixtures.sql @@ -1404,4 +1404,68 @@ INSERT INTO `vn`.`sharingClient`(`id`, `workerFk`, `started`, `ended`, `clientFk INSERT INTO `vn`.`sharingCart`(`id`, `workerFk`, `started`, `ended`, `workerSubstitute`, `created`) VALUES - (1, 18, DATE_ADD(CURDATE(), INTERVAL -5 DAY), DATE_ADD(CURDATE(), INTERVAL +15 DAY), 19, DATE_ADD(CURDATE(), INTERVAL -5 DAY)); \ No newline at end of file + (1, 18, DATE_ADD(CURDATE(), INTERVAL -5 DAY), DATE_ADD(CURDATE(), INTERVAL +15 DAY), 19, DATE_ADD(CURDATE(), INTERVAL -5 DAY)); + +INSERT INTO `vn`.`zone` (`id`, `name`, `hour`, `warehouseFk`, `agencyModeFk`, `travelingDays`, `price`, `bonus`) + VALUES + (1, 'Zone 1 A', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '1', '1', '5', '2'), + (2, 'Zone 1 B', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '1', '1', '2', '1'), + (3, 'Zone 1 C', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '2', '1', '2', '3', '2'), + (4, 'Zone 2 A', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '7', '2', '5', '1'), + (5, 'Zone 2 B', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '7', '1', '2', '2'), + (6, 'Zone 2 C', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '2', '7', '1', '3', '1'), + (7, 'Zone 3 A', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '8', '2', '5', '1'), + (8, 'Zone 3 B', CONCAT(CURRENT_DATE(), ' ', TIME('22:00')), '1', '8', '1', '2', '2'); + + +INSERT INTO `vn`.`zoneIncluded` (`zoneFk`, `geoFk`, `isIncluded`) + VALUES + (1, 3, 0), + (1, 4, 1), + (1, 5, 1), + (1, 21083, 1), + (2, 3, 1), + (2, 4, 0), + (2, 5, 1), + (3, 2, 1), + (3, 3, 0), + (3, 4, 0), + (3, 5, 1), + (4, 2, 0), + (4, 3, 1), + (4, 4, 1), + (4, 5, 0), + (4, 21083, 1), + (5, 2, 1), + (5, 3, 1), + (5, 4, 1), + (5, 5, 1), + (7, 2, 0), + (7, 3, 1), + (7, 4, 1), + (7, 5, 0), + (7, 21083, 1); + +INSERT INTO `vn`.`zoneCalendar`(`zoneFk`, `delivered`) + VALUES + (1, CURDATE()), + (1, DATE_ADD(CURDATE(), INTERVAL +1 DAY)), + (1, DATE_ADD(CURDATE(), INTERVAL +2 DAY)), + (1, DATE_ADD(CURDATE(), INTERVAL +3 DAY)), + (1, DATE_ADD(CURDATE(), INTERVAL +4 DAY)), + (1, DATE_ADD(CURDATE(), INTERVAL +5 DAY)), + (1, DATE_ADD(CURDATE(), INTERVAL +6 DAY)), + (4, CURDATE()), + (4, DATE_ADD(CURDATE(), INTERVAL +1 DAY)), + (4, DATE_ADD(CURDATE(), INTERVAL +2 DAY)), + (4, DATE_ADD(CURDATE(), INTERVAL +3 DAY)), + (4, DATE_ADD(CURDATE(), INTERVAL +4 DAY)), + (4, DATE_ADD(CURDATE(), INTERVAL +5 DAY)), + (4, DATE_ADD(CURDATE(), INTERVAL +6 DAY)), + (7, CURDATE()), + (7, DATE_ADD(CURDATE(), INTERVAL +1 DAY)), + (7, DATE_ADD(CURDATE(), INTERVAL +2 DAY)), + (7, DATE_ADD(CURDATE(), INTERVAL +3 DAY)), + (7, DATE_ADD(CURDATE(), INTERVAL +4 DAY)), + (7, DATE_ADD(CURDATE(), INTERVAL +5 DAY)), + (7, DATE_ADD(CURDATE(), INTERVAL +6 DAY));