feat: refs #8119 Requested changes
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-10-18 07:44:28 +02:00
parent 4bd28c62b9
commit 7e604f1a19
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ proc: BEGIN
SET vDateSumFrom = vDateSumTo - INTERVAL vScopeDays DAY; SET vDateSumFrom = vDateSumTo - INTERVAL vScopeDays DAY;
INSERT INTO itemCampaignQuantity(dated, itemFk, quantity, campaign) REPLACE itemCampaignQuantity(dated, itemFk, quantity, campaign)
SELECT DATE(s.created), SELECT DATE(s.created),
s.itemFk, s.itemFk,
SUM(CASE WHEN t.shipped BETWEEN vDateSumFrom AND vDateSumTo SUM(CASE WHEN t.shipped BETWEEN vDateSumFrom AND vDateSumTo

View File

@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS `vn`.`itemCampaignQuantity` (
ENGINE=InnoDB ENGINE=InnoDB
DEFAULT CHARSET=utf8mb3 DEFAULT CHARSET=utf8mb3
COLLATE=utf8mb3_unicode_ci COLLATE=utf8mb3_unicode_ci
COMMENT='Tallos confirmados por día en los días de más producción de una campaña'; COMMENT='Tallos confirmados por día en los días de más producción de una campaña. La tabla está pensada para que sea una foto.';
CREATE TABLE IF NOT EXISTS `vn`.`itemCampaignQuantityConfig` ( CREATE TABLE IF NOT EXISTS `vn`.`itemCampaignQuantityConfig` (
id int(10) unsigned NOT NULL PRIMARY KEY, id int(10) unsigned NOT NULL PRIMARY KEY,