feat: refs #8119 Minor change
gitea/salix/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Guillermo Bonet 2024-10-17 10:29:35 +02:00
parent 8ca69d3574
commit 2bd98b7fb6
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
CREATE TABLE IF NOT EXISTS vn.itemCampaignQuantity (
CREATE TABLE IF NOT EXISTS `vn`.`itemCampaignQuantity` (
dated date NOT NULL,
itemFk int(11) NOT NULL,
quantity decimal(10,2) NOT NULL,
@ -10,8 +10,8 @@ ENGINE=InnoDB
DEFAULT CHARSET=utf8mb3
COLLATE=utf8mb3_unicode_ci;
CREATE TABLE IF NOT EXISTS vn.itemCampaignQuantityConfig (
id int(10) unsigned NOT NULL PRIMARY,
CREATE TABLE IF NOT EXISTS `vn`.`itemCampaignQuantityConfig` (
id int(10) unsigned NOT NULL PRIMARY KEY,
defaultCampaign varchar(100) NOT NULL COMMENT 'Campaña por defecto si se le pasa NULL',
previousDaysToInsert int(10) unsigned NOT NULL COMMENT 'Días anteriores a la fecha de fin de campaña para insertar',
CONSTRAINT `itemCampaignQuantityConfig_check` CHECK (`id` = 1)
@ -20,5 +20,5 @@ ENGINE=InnoDB
DEFAULT CHARSET=utf8mb3
COLLATE=utf8mb3_unicode_ci;
INSERT IGNORE INTO vn.itemCampaignQuantityConfig(id, defaultCampaign, previousDaysToInsert)
INSERT IGNORE INTO `vn`.`itemCampaignQuantityConfig` (id, defaultCampaign, previousDaysToInsert)
VALUES (1, 'allSaints', 90);