sikevadb/resources/sql/create.sql

29 lines
895 B
MySQL
Raw Normal View History

2013-09-02 12:31:06 +02:00
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Base de données: `sikevadb-kiwa`
--
CREATE DATABASE IF NOT EXISTS `sikevadb-test` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
USE `sikevadb-kiwa`;
-- --------------------------------------------------------
--
-- Structure de la table `elements`
--
DROP TABLE IF EXISTS `elements`;
CREATE TABLE IF NOT EXISTS `elements` (
`TOPKEY` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`SUBKEY` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`SIZE` int(11) NOT NULL DEFAULT '0',
`DIGEST` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`CREATION_DATE` date NOT NULL,
`EDITION_DATE` date NOT NULL,
`ARCHIVE_DATE` date DEFAULT NULL,
`VALUE` longtext COLLATE utf8_unicode_ci,
PRIMARY KEY (`TOPKEY`),
KEY `XKEYINDEX` (`TOPKEY`,`SUBKEY`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;