2019-09-06 07:47:58 +00:00
|
|
|
ALTER TABLE `vn2008`.`warehouse`
|
|
|
|
ADD COLUMN `hasStowaway` TINYINT(1) NOT NULL DEFAULT 0 AFTER `hasConfectionTeam`;
|
|
|
|
|
|
|
|
|
2019-09-23 12:50:30 +00:00
|
|
|
UPDATE `vn2008`.`warehouse` SET `hasStowaway` = '1' WHERE (`id` = '1');
|
2019-09-06 07:47:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE
|
|
|
|
OR REPLACE ALGORITHM = UNDEFINED
|
|
|
|
DEFINER = `root`@`%`
|
|
|
|
SQL SECURITY DEFINER
|
|
|
|
VIEW `vn`.`warehouse` AS
|
|
|
|
SELECT
|
|
|
|
`t`.`id` AS `id`,
|
|
|
|
`t`.`name` AS `name`,
|
|
|
|
`t`.`inventario` AS `isInventory`,
|
|
|
|
`t`.`fuente` AS `isFeedStock`,
|
|
|
|
`t`.`is_comparative` AS `isComparative`,
|
|
|
|
`t`.`comisionantes` AS `hasComission`,
|
|
|
|
`t`.`reserve` AS `hasAvailable`,
|
|
|
|
`t`.`isManaged` AS `isManaged`,
|
|
|
|
`t`.`tpv` AS `isForTicket`,
|
|
|
|
`t`.`hasStowaway` AS `hasStowaway`
|
|
|
|
FROM
|
|
|
|
`vn2008`.`warehouse` `t`;
|