159 lines
5.0 KiB
SQL
159 lines
5.0 KiB
SQL
-- MySQL dump 10.11
|
|
--
|
|
-- Host: localhost Database: simba
|
|
-- ------------------------------------------------------
|
|
-- Server version 5.0.51a-24+lenny1
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
/*!40101 SET NAMES utf8 */;
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
|
|
--
|
|
-- Table structure for table `archived_versions`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `archived_versions`;
|
|
SET @saved_cs_client = @@character_set_client;
|
|
SET character_set_client = utf8;
|
|
CREATE TABLE `archived_versions` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`volume` int(11) default NULL,
|
|
`version` int(11) default NULL,
|
|
`file` int(11) default NULL,
|
|
`offset` bigint(20) default NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
SET character_set_client = @saved_cs_client;
|
|
|
|
--
|
|
-- Table structure for table `files`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `files`;
|
|
SET @saved_cs_client = @@character_set_client;
|
|
SET character_set_client = utf8;
|
|
CREATE TABLE `files` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`path` text,
|
|
`fileset` int(11) default NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `files_path_index` (`path`(200))
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
SET character_set_client = @saved_cs_client;
|
|
|
|
--
|
|
-- Table structure for table `filesets`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `filesets`;
|
|
SET @saved_cs_client = @@character_set_client;
|
|
SET character_set_client = utf8;
|
|
CREATE TABLE `filesets` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`host` varchar(255) default NULL,
|
|
`dir` text,
|
|
`options` text,
|
|
active tinyint not null default 1,
|
|
timeout int,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
SET character_set_client = @saved_cs_client;
|
|
|
|
--
|
|
-- Table structure for table `instances`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `instances`;
|
|
SET @saved_cs_client = @@character_set_client;
|
|
SET character_set_client = utf8;
|
|
CREATE TABLE `instances` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`file` int(11) default NULL,
|
|
`file_id` varchar(255) default NULL,
|
|
`date` int(11) default NULL,
|
|
`online` tinyint(1) default NULL,
|
|
`session` int(11) default NULL,
|
|
`version` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `instances_session_file_idx` (`session`,`file`),
|
|
KEY `instances_file_session_idx` (`file`,`session`),
|
|
KEY `instances_version_idx` (`version`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
SET character_set_client = @saved_cs_client;
|
|
|
|
--
|
|
-- Table structure for table `sessions`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `sessions`;
|
|
SET @saved_cs_client = @@character_set_client;
|
|
SET character_set_client = utf8;
|
|
CREATE TABLE `sessions` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`start_date` int(11) default NULL,
|
|
`end_date` int(11) default NULL,
|
|
`prefix` varchar(255) default NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
SET character_set_client = @saved_cs_client;
|
|
|
|
--
|
|
-- Table structure for table `versions2`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `versions2`;
|
|
SET @saved_cs_client = @@character_set_client;
|
|
SET character_set_client = utf8;
|
|
CREATE TABLE `versions2` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`file_type` char(1) default NULL,
|
|
`file_size` bigint(20) default NULL,
|
|
`file_mtime` int(11) default NULL,
|
|
`file_owner` varchar(255) default NULL,
|
|
`file_group` varchar(255) default NULL,
|
|
`file_acl` varchar(255) default NULL,
|
|
`file_unix_bits` set('setuid','setgid','sticky') default NULL,
|
|
`file_rdev` int(11) default NULL,
|
|
`checksum` varchar(255) default NULL,
|
|
`file_linktarget` text,
|
|
PRIMARY KEY (`id`),
|
|
KEY `versions2_content_idx` (`checksum`,`file_mtime`),
|
|
KEY `versions2_content2_idx` (`file_type`,`file_mtime`,`checksum`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
SET character_set_client = @saved_cs_client;
|
|
|
|
--
|
|
-- Table structure for table `volumes`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `volumes`;
|
|
SET @saved_cs_client = @@character_set_client;
|
|
SET character_set_client = utf8;
|
|
CREATE TABLE `volumes` (
|
|
`id` int(11) NOT NULL auto_increment,
|
|
`label` varchar(255) default NULL,
|
|
`barcode` varchar(255) default NULL,
|
|
`filesize` bigint(20) default NULL,
|
|
`blocksize` int(11) default NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
|
SET character_set_client = @saved_cs_client;
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|
|
-- Dump completed on 2009-08-19 11:29:50
|