From 15f14062ca994d3b9cbe20691e347bdf34d79f33 Mon Sep 17 00:00:00 2001 From: Pau Navarro Date: Thu, 24 Nov 2022 14:06:52 +0100 Subject: [PATCH] Requested changes --- db/changes/10503-november/01-Create_stateI18n.sql | 6 ++---- db/changes/10503-november/02-insert_stateI18n.sql | 5 ++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/db/changes/10503-november/01-Create_stateI18n.sql b/db/changes/10503-november/01-Create_stateI18n.sql index a4e4fe8e6..6a9181d4d 100644 --- a/db/changes/10503-november/01-Create_stateI18n.sql +++ b/db/changes/10503-november/01-Create_stateI18n.sql @@ -1,10 +1,8 @@ CREATE TABLE `vn`.`stateI18n` ( `stateFk` tinyint(3) unsigned NOT NULL, - `lang` - set -('en', 'es') NOT NULL, + `lang` char(2) NOT NULL, `name` varchar(255) NOT NULL, PRIMARY KEY (`stateFk`, `lang`), KEY `stateFk` (`stateFk`), - CONSTRAINT `stateI18n_state_id` FOREIGN KEY (`stateFk`) REFERENCES `vn`.`state` (`id`) ON UPDATE CASCADE ON DELETE CASCADE + CONSTRAINT `stateI18n_state_id` FOREIGN KEY (`stateFk`) REFERENCES `vn`.`state` (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8; diff --git a/db/changes/10503-november/02-insert_stateI18n.sql b/db/changes/10503-november/02-insert_stateI18n.sql index aaaa7171a..e303981af 100644 --- a/db/changes/10503-november/02-insert_stateI18n.sql +++ b/db/changes/10503-november/02-insert_stateI18n.sql @@ -1,3 +1,6 @@ +INSERT INTO `vn`.`state` (`name`,`order`,`alertLevel`,`code`,`sectorProdPriority`,`nextStateFk`,`isPreviousPreparable`,`isPicked`,`isPreparable`,`semaphore`,`isPrintable`,`isOK`,`graphCategory`,`isNotValidated`,`classColor`) VALUES + ('Prep Cámara',6,1,'COOLER_PREPARATION',7,14,0,0,0,2,0,0,2,0,'warning'); + INSERT INTO `vn`.`stateI18n` (`stateFk`, `lang`, `name`) VALUES @@ -5,7 +8,7 @@ VALUES (1, 'es', 'Arreglar'), (2, 'en', 'Free'), (2, 'es', 'Libre'), - (3, 'en', 'OK'), + (3, 'en', 'OK'), (3, 'es', 'OK'), (4, 'en', 'Printed'), (4, 'es', 'Impreso'),