This commit is contained in:
parent
8e8ee39302
commit
53a367f4b3
|
@ -1,7 +0,0 @@
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
||||||
SQL SECURITY DEFINER
|
|
||||||
VIEW `vn`.`agencyWarehouse`
|
|
||||||
AS SELECT `a`.`agency_id` AS `agencyFk`,
|
|
||||||
`a`.`warehouse_id` AS `warehouseFk`,
|
|
||||||
`a`.`Vista` AS `agencyType`
|
|
||||||
FROM `vn2008`.`agency_warehouse` `a`
|
|
|
@ -1,9 +0,0 @@
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
||||||
SQL SECURITY DEFINER
|
|
||||||
VIEW `vn`.`clientDefaultCompany`
|
|
||||||
AS SELECT `t`.`Id_Clientes_empresa` AS `id`,
|
|
||||||
`t`.`Id_Cliente` AS `clientFk`,
|
|
||||||
`t`.`empresa_id` AS `companyFk`,
|
|
||||||
`t`.`fecha_ini` AS `started`,
|
|
||||||
`t`.`fecha_fin` AS `finished`
|
|
||||||
FROM `vn2008`.`Clientes_empresa` `t`
|
|
|
@ -1,6 +0,0 @@
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
||||||
SQL SECURITY DEFINER
|
|
||||||
VIEW `vn`.`coolerPath`
|
|
||||||
AS SELECT `c`.`cooler_path_id` AS `id`,
|
|
||||||
`c`.`description` AS `description`
|
|
||||||
FROM `vn2008`.`cooler_path` `c`
|
|
|
@ -1,7 +0,0 @@
|
||||||
CREATE OR REPLACE DEFINER=`root`@`localhost`
|
|
||||||
SQL SECURITY DEFINER
|
|
||||||
VIEW `vn`.`grantGroup`
|
|
||||||
AS SELECT `vn2008`.`Grupos`.`id` AS `id`,
|
|
||||||
`vn2008`.`Grupos`.`Grupo` AS `description`,
|
|
||||||
`vn2008`.`Grupos`.`observation_type_id` AS `observationTypeFk`
|
|
||||||
FROM `vn2008`.`Grupos`
|
|
|
@ -21,18 +21,10 @@ proc: BEGIN
|
||||||
SET vRangeDeleteTicket = 60;
|
SET vRangeDeleteTicket = 60;
|
||||||
|
|
||||||
DELETE FROM cdr WHERE calldate < vDate18;
|
DELETE FROM cdr WHERE calldate < vDate18;
|
||||||
DELETE FROM Monitoring WHERE ODBC_TIME < vDate;
|
|
||||||
DELETE FROM Conteo WHERE Fecha < vDate;
|
|
||||||
DELETE FROM mail WHERE DATE_ODBC < vDate;
|
DELETE FROM mail WHERE DATE_ODBC < vDate;
|
||||||
DELETE FROM expeditions_deleted WHERE odbc_date < vDate26;
|
|
||||||
DELETE FROM Movimientos_mark WHERE odbc_date < vDate;
|
DELETE FROM Movimientos_mark WHERE odbc_date < vDate;
|
||||||
DELETE FROM Splits WHERE Fecha < vDate18;
|
DELETE FROM Splits WHERE Fecha < vDate18;
|
||||||
|
|
||||||
DELETE ts
|
|
||||||
FROM Tickets_stack ts
|
|
||||||
JOIN Tickets t ON ts.Id_Ticket = t.Id_Ticket
|
|
||||||
WHERE t.Fecha < vDate;
|
|
||||||
|
|
||||||
DELETE tobs
|
DELETE tobs
|
||||||
FROM ticket_observation tobs
|
FROM ticket_observation tobs
|
||||||
JOIN Tickets t ON tobs.Id_Ticket = t.Id_Ticket
|
JOIN Tickets t ON tobs.Id_Ticket = t.Id_Ticket
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Compres_ok__ RENAME vn2008.Compres_ok;
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Compres_ok COMMENT='';
|
||||||
|
|
||||||
|
|
||||||
|
-- Para la tabla Monitoring
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Monitoring RENAME vn2008.Monitoring__;
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Monitoring__ COMMENT='refs #6371 deprecated 2024-01-11';
|
||||||
|
|
||||||
|
-- Para la tabla Movimientos_avisar
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Movimientos_avisar RENAME vn2008.Movimientos_avisar__;
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Movimientos_avisar__ COMMENT='refs #6371 deprecated 2024-01-11';
|
||||||
|
|
||||||
|
|
||||||
|
-- Para la tabla Movimientos_revisar
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Movimientos_revisar RENAME vn2008.Movimientos_revisar__;
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Movimientos_revisar__ COMMENT='refs #6371 deprecated 2024-01-11';
|
||||||
|
|
||||||
|
|
||||||
|
-- Para la tabla Proveedores_escritos
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Proveedores_escritos RENAME vn2008.Proveedores_escritos__;
|
||||||
|
ALTER TABLE IF EXISTS vn2008.Proveedores_escritos__ COMMENT='refs #6371 deprecated 2024-01-11';
|
Loading…
Reference in New Issue