Merge branch '6501-procMigration' of https://gitea.verdnatura.es/verdnatura/salix into 6501-procMigration
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
b815677a1f
|
@ -87,6 +87,6 @@ module.exports = Self => {
|
|||
|
||||
await fs.access(file.path);
|
||||
const stream = fs.createReadStream(file.path);
|
||||
return [stream, file.contentType, `filename="${file.name}"`];
|
||||
return [stream, file.contentType, `filename="${fileName}"`];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
DELIMITER $$
|
||||
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`budgetNotes_BeforeInsert`
|
||||
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`budgetNotes_beforeInsert`
|
||||
BEFORE INSERT ON `budgetNotes`
|
||||
FOR EACH ROW
|
||||
BEGIN
|
|
@ -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;
|
||||
|
||||
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 expeditions_deleted WHERE odbc_date < vDate26;
|
||||
DELETE FROM Movimientos_mark WHERE odbc_date < vDate;
|
||||
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
|
||||
FROM ticket_observation tobs
|
||||
JOIN Tickets t ON tobs.Id_Ticket = t.Id_Ticket
|
||||
|
@ -64,13 +56,6 @@ proc: BEGIN
|
|||
JOIN travel t ON t.id = e.travel_id
|
||||
WHERE t.landing <= vDate;
|
||||
|
||||
DELETE co
|
||||
FROM Compres_ok co JOIN Compres c ON c.Id_Compra = co.Id_Compra
|
||||
JOIN Entradas e ON e.Id_Entrada = c.Id_Entrada
|
||||
JOIN travel t ON t.id = e.travel_id
|
||||
WHERE t.landing <= vDate;
|
||||
DELETE FROM scan WHERE odbc_date < vDate6 AND id <> 1;
|
||||
|
||||
IF v_full THEN
|
||||
CREATE OR REPLACE TEMPORARY TABLE tTicketDelete
|
||||
SELECT DISTINCT tl.originFk ticketFk
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
-- 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