Closes #288 translation for vn.state using i18n #1152
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#1152
Loading…
Reference in New Issue
No description provided.
Delete Branch "#288-traducir-state-i18n"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
refs #288to Closes #288 translation for vn.state using i18nHe puesto 2 cambios, el resto está bien.
@ -0,0 +2,4 @@
`stateFk` tinyint(3) unsigned NOT NULL,
`lang`
set
('en', 'es') NOT NULL,
En lugar del tipo
SET
utilizarCHAR(2)
ya que los idiomas no están limitados solo aes
yen
.@ -0,0 +5,4 @@
('en', 'es') NOT NULL,
`name` varchar(255) NOT NULL,
PRIMARY KEY (`stateFk`, `lang`),
KEY `stateFk` (`stateFk`),
Este indice no es necesario
@ -0,0 +4,4 @@
`name` varchar(255) NOT NULL,
KEY `stateFk` (`stateFk`),
CONSTRAINT `stateI18n_state_id` FOREIGN KEY (`stateFk`) REFERENCES `vn`.`state` (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
Añadir:
PRIMARY KEY (stateFk, lang)
Quitar:
KEY stateFk (stateFk)