CREATE TABLE IF NOT EXISTS `localize` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`idf` varchar(255) DEFAULT NULL,
`lang` varchar(5) DEFAULT NULL,
`module` varchar(10) NOT NULL,
`translation` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `un_module_idf_lang` (`module`,`idf`,`lang`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `localize_plural` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`localize_id` mediumint(8) unsigned NOT NULL,
`limit` mediumint(8) unsigned NOT NULL,
`translation` text NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `un_localize_id_limit` (`localize_id`,`limit`),
KEY `fk_localize_id` (`localize_id`),
KEY `where_limit` (`limit`),
CONSTRAINT `localize_plural_fk_localize` FOREIGN KEY (`localize_id`) REFERENCES `localize` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|