2013-09-02 12:31:06 +02:00
|
|
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
|
|
SET time_zone = "+00:00";
|
|
|
|
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Structure de la table `elements`
|
|
|
|
--
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `elements`;
|
|
|
|
CREATE TABLE IF NOT EXISTS `elements` (
|
2013-09-06 00:39:18 +02:00
|
|
|
`ID` int(11) NOT NULL AUTO_INCREMENT,
|
2013-09-02 12:31:06 +02:00
|
|
|
`TOPKEY` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
|
|
|
`SUBKEY` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
2013-09-06 00:39:18 +02:00
|
|
|
`VALUE` longtext COLLATE utf8_unicode_ci,
|
2013-09-02 12:31:06 +02:00
|
|
|
`SIZE` int(11) NOT NULL DEFAULT '0',
|
|
|
|
`DIGEST` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
2013-09-06 00:39:18 +02:00
|
|
|
`CREATION_DATE` datetime NOT NULL,
|
|
|
|
`EDITION_DATE` datetime NOT NULL,
|
|
|
|
`ARCHIVE_DATE` datetime DEFAULT NULL,
|
|
|
|
PRIMARY KEY (`ID`),
|
|
|
|
KEY `XKEYINDEX` (`TOPKEY`,`SUBKEY`),
|
|
|
|
KEY `TOPKEYINDEX` (`TOPKEY`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
|