update structure and fixtures

This commit is contained in:
Bernat 2018-06-06 14:49:31 +02:00
parent bde61a8509
commit f7930ad664
3 changed files with 12 additions and 10 deletions

View File

@ -1,5 +1,6 @@
USE `vn`;
CREATE
ALGORITHM = UNDEFINED
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `buy` AS
@ -28,4 +29,4 @@ VIEW `buy` AS
`c`.`buy_edi_id` AS `ektFk`,
`c`.`Novincular` AS `isIgnored`
FROM
`vn2008`.`Compres` `c`
`vn2008`.`Compres` `c`;

View File

@ -1,5 +1,6 @@
USE `edi`;
CREATE
ALGORITHM = UNDEFINED
OR REPLACE ALGORITHM = UNDEFINED
DEFINER = `root`@`%`
SQL SECURITY DEFINER
VIEW `edi`.`ekt` AS
@ -38,7 +39,7 @@ VIEW `edi`.`ekt` AS
`vn2008`.`buy_edi`.`s5` AS `s5`,
`vn2008`.`buy_edi`.`s6` AS `s6`,
`vn2008`.`buy_edi`.`ok` AS `ok`,
`vn2008`.`buy_edi`.`trolley_id` AS `trolley_id`,
`vn2008`.`buy_edi`.`trolley_id` AS `trolley_id`,
`vn2008`.`buy_edi`.`scanned` AS `scanned`
FROM
`vn2008`.`buy_edi`
`vn2008`.`buy_edi`;

View File

@ -631,12 +631,12 @@ INSERT INTO `vn`.`ticketWeekly`(`ticketFk`, `weekDay`)
( 4, 4),
( 5, 6);
INSERT INTO `vn`.`travel`(`id`, `landed`, `warehouseInFk`, `warehouseOutFk`, `agencyFk`, `m3`, `kg`)
INSERT INTO `vn`.`travel`(`id`,`shipped`, `landed`, `warehouseInFk`, `warehouseOutFk`, `agencyFk`, `m3`, `kg`)
VALUES
( 1, CURDATE(), 1, 2, 1, 100.00, 1000),
( 2, CURDATE(), 1, 2, 1, 150, 2000),
( 3, CURDATE(), 1, 2, 1, 0.00, 0.00),
( 4, CURDATE(), 1, 2, 1, 50.00, 500);
( 1, CURDATE(), CURDATE(), 1, 2, 1, 100.00, 1000),
( 2, CURDATE(), CURDATE(), 1, 2, 1, 150, 2000),
( 3, CURDATE(), CURDATE(), 1, 2, 1, 0.00, 0.00),
( 4, CURDATE(), CURDATE(), 1, 2, 1, 50.00, 500);
INSERT INTO `vn`.`entry`(`id`, `supplierFk`, `created`, `travelFk`, `companyFk`)
VALUES