-- MySQL dump 10.11 -- -- Host: localhost Database: redmine -- ------------------------------------------------------ -- Server version 5.0.45 /*!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 `attachments` -- DROP TABLE IF EXISTS `attachments`; CREATE TABLE `attachments` ( `id` int(11) NOT NULL auto_increment, `container_id` int(11) NOT NULL default '0', `container_type` varchar(30) NOT NULL default '', `filename` varchar(255) NOT NULL default '', `disk_filename` varchar(255) NOT NULL default '', `filesize` int(11) NOT NULL default '0', `content_type` varchar(255) default '', `digest` varchar(40) NOT NULL default '', `downloads` int(11) NOT NULL default '0', `author_id` int(11) NOT NULL default '0', `created_on` datetime default NULL, `description` varchar(255) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `attachments` -- LOCK TABLES `attachments` WRITE; /*!40000 ALTER TABLE `attachments` DISABLE KEYS */; /*!40000 ALTER TABLE `attachments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `auth_sources` -- DROP TABLE IF EXISTS `auth_sources`; CREATE TABLE `auth_sources` ( `id` int(11) NOT NULL auto_increment, `type` varchar(30) NOT NULL default '', `name` varchar(60) NOT NULL default '', `host` varchar(60) default NULL, `port` int(11) default NULL, `account` varchar(255) default NULL, `account_password` varchar(60) default NULL, `base_dn` varchar(255) default NULL, `attr_login` varchar(30) default NULL, `attr_firstname` varchar(30) default NULL, `attr_lastname` varchar(30) default NULL, `attr_mail` varchar(30) default NULL, `onthefly_register` tinyint(1) NOT NULL default '0', `tls` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `auth_sources` -- LOCK TABLES `auth_sources` WRITE; /*!40000 ALTER TABLE `auth_sources` DISABLE KEYS */; /*!40000 ALTER TABLE `auth_sources` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `boards` -- DROP TABLE IF EXISTS `boards`; CREATE TABLE `boards` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) NOT NULL, `name` varchar(255) NOT NULL default '', `description` varchar(255) default NULL, `position` int(11) default '1', `topics_count` int(11) NOT NULL default '0', `messages_count` int(11) NOT NULL default '0', `last_message_id` int(11) default NULL, PRIMARY KEY (`id`), KEY `boards_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `boards` -- LOCK TABLES `boards` WRITE; /*!40000 ALTER TABLE `boards` DISABLE KEYS */; /*!40000 ALTER TABLE `boards` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `changes` -- DROP TABLE IF EXISTS `changes`; CREATE TABLE `changes` ( `id` int(11) NOT NULL auto_increment, `changeset_id` int(11) NOT NULL, `action` varchar(1) NOT NULL default '', `path` varchar(255) NOT NULL default '', `from_path` varchar(255) default NULL, `from_revision` varchar(255) default NULL, `revision` varchar(255) default NULL, `branch` varchar(255) default NULL, PRIMARY KEY (`id`), KEY `changesets_changeset_id` (`changeset_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `changes` -- LOCK TABLES `changes` WRITE; /*!40000 ALTER TABLE `changes` DISABLE KEYS */; /*!40000 ALTER TABLE `changes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `changesets` -- DROP TABLE IF EXISTS `changesets`; CREATE TABLE `changesets` ( `id` int(11) NOT NULL auto_increment, `repository_id` int(11) NOT NULL, `revision` varchar(255) NOT NULL, `committer` varchar(255) default NULL, `committed_on` datetime NOT NULL, `comments` text, `commit_date` date default NULL, `scmid` varchar(255) default NULL, `user_id` int(11) default NULL, PRIMARY KEY (`id`), UNIQUE KEY `changesets_repos_rev` (`repository_id`,`revision`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `changesets` -- LOCK TABLES `changesets` WRITE; /*!40000 ALTER TABLE `changesets` DISABLE KEYS */; /*!40000 ALTER TABLE `changesets` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `changesets_issues` -- DROP TABLE IF EXISTS `changesets_issues`; CREATE TABLE `changesets_issues` ( `changeset_id` int(11) NOT NULL, `issue_id` int(11) NOT NULL, UNIQUE KEY `changesets_issues_ids` (`changeset_id`,`issue_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `changesets_issues` -- LOCK TABLES `changesets_issues` WRITE; /*!40000 ALTER TABLE `changesets_issues` DISABLE KEYS */; /*!40000 ALTER TABLE `changesets_issues` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `comments` -- DROP TABLE IF EXISTS `comments`; CREATE TABLE `comments` ( `id` int(11) NOT NULL auto_increment, `commented_type` varchar(30) NOT NULL default '', `commented_id` int(11) NOT NULL default '0', `author_id` int(11) NOT NULL default '0', `comments` text, `created_on` datetime NOT NULL, `updated_on` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `comments` -- LOCK TABLES `comments` WRITE; /*!40000 ALTER TABLE `comments` DISABLE KEYS */; /*!40000 ALTER TABLE `comments` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `custom_fields` -- DROP TABLE IF EXISTS `custom_fields`; CREATE TABLE `custom_fields` ( `id` int(11) NOT NULL auto_increment, `type` varchar(30) NOT NULL default '', `name` varchar(30) NOT NULL default '', `field_format` varchar(30) NOT NULL default '', `possible_values` text, `regexp` varchar(255) default '', `min_length` int(11) NOT NULL default '0', `max_length` int(11) NOT NULL default '0', `is_required` tinyint(1) NOT NULL default '0', `is_for_all` tinyint(1) NOT NULL default '0', `is_filter` tinyint(1) NOT NULL default '0', `position` int(11) default '1', `searchable` tinyint(1) default '0', `default_value` text, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `custom_fields` -- LOCK TABLES `custom_fields` WRITE; /*!40000 ALTER TABLE `custom_fields` DISABLE KEYS */; /*!40000 ALTER TABLE `custom_fields` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `custom_fields_projects` -- DROP TABLE IF EXISTS `custom_fields_projects`; CREATE TABLE `custom_fields_projects` ( `custom_field_id` int(11) NOT NULL default '0', `project_id` int(11) NOT NULL default '0' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `custom_fields_projects` -- LOCK TABLES `custom_fields_projects` WRITE; /*!40000 ALTER TABLE `custom_fields_projects` DISABLE KEYS */; /*!40000 ALTER TABLE `custom_fields_projects` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `custom_fields_trackers` -- DROP TABLE IF EXISTS `custom_fields_trackers`; CREATE TABLE `custom_fields_trackers` ( `custom_field_id` int(11) NOT NULL default '0', `tracker_id` int(11) NOT NULL default '0' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `custom_fields_trackers` -- LOCK TABLES `custom_fields_trackers` WRITE; /*!40000 ALTER TABLE `custom_fields_trackers` DISABLE KEYS */; /*!40000 ALTER TABLE `custom_fields_trackers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `custom_values` -- DROP TABLE IF EXISTS `custom_values`; CREATE TABLE `custom_values` ( `id` int(11) NOT NULL auto_increment, `customized_type` varchar(30) NOT NULL default '', `customized_id` int(11) NOT NULL default '0', `custom_field_id` int(11) NOT NULL default '0', `value` text, PRIMARY KEY (`id`), KEY `custom_values_customized` (`customized_type`,`customized_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `custom_values` -- LOCK TABLES `custom_values` WRITE; /*!40000 ALTER TABLE `custom_values` DISABLE KEYS */; /*!40000 ALTER TABLE `custom_values` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `documents` -- DROP TABLE IF EXISTS `documents`; CREATE TABLE `documents` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) NOT NULL default '0', `category_id` int(11) NOT NULL default '0', `title` varchar(60) NOT NULL default '', `description` text, `created_on` datetime default NULL, PRIMARY KEY (`id`), KEY `documents_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `documents` -- LOCK TABLES `documents` WRITE; /*!40000 ALTER TABLE `documents` DISABLE KEYS */; /*!40000 ALTER TABLE `documents` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `enabled_modules` -- DROP TABLE IF EXISTS `enabled_modules`; CREATE TABLE `enabled_modules` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) default NULL, `name` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `enabled_modules_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `enabled_modules` -- LOCK TABLES `enabled_modules` WRITE; /*!40000 ALTER TABLE `enabled_modules` DISABLE KEYS */; /*!40000 ALTER TABLE `enabled_modules` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `enumerations` -- DROP TABLE IF EXISTS `enumerations`; CREATE TABLE `enumerations` ( `id` int(11) NOT NULL auto_increment, `opt` varchar(4) NOT NULL default '', `name` varchar(30) NOT NULL default '', `position` int(11) default '1', `is_default` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=10 DEFAULT CHARSET=latin1; -- -- Dumping data for table `enumerations` -- LOCK TABLES `enumerations` WRITE; /*!40000 ALTER TABLE `enumerations` DISABLE KEYS */; INSERT INTO `enumerations` VALUES (1,'DCAT','User documentation',1,0),(2,'DCAT','Technical documentation',2,0),(3,'IPRI','Low',1,0),(4,'IPRI','Normal',2,1),(5,'IPRI','High',3,0),(6,'IPRI','Urgent',4,0),(7,'IPRI','Immediate',5,0),(8,'ACTI','Design',1,0),(9,'ACTI','Development',2,0); /*!40000 ALTER TABLE `enumerations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `issue_categories` -- DROP TABLE IF EXISTS `issue_categories`; CREATE TABLE `issue_categories` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) NOT NULL default '0', `name` varchar(30) NOT NULL default '', `assigned_to_id` int(11) default NULL, PRIMARY KEY (`id`), KEY `issue_categories_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `issue_categories` -- LOCK TABLES `issue_categories` WRITE; /*!40000 ALTER TABLE `issue_categories` DISABLE KEYS */; /*!40000 ALTER TABLE `issue_categories` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `issue_relations` -- DROP TABLE IF EXISTS `issue_relations`; CREATE TABLE `issue_relations` ( `id` int(11) NOT NULL auto_increment, `issue_from_id` int(11) NOT NULL, `issue_to_id` int(11) NOT NULL, `relation_type` varchar(255) NOT NULL default '', `delay` int(11) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `issue_relations` -- LOCK TABLES `issue_relations` WRITE; /*!40000 ALTER TABLE `issue_relations` DISABLE KEYS */; /*!40000 ALTER TABLE `issue_relations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `issue_statuses` -- DROP TABLE IF EXISTS `issue_statuses`; CREATE TABLE `issue_statuses` ( `id` int(11) NOT NULL auto_increment, `name` varchar(30) NOT NULL default '', `is_closed` tinyint(1) NOT NULL default '0', `is_default` tinyint(1) NOT NULL default '0', `position` int(11) default '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=latin1; -- -- Dumping data for table `issue_statuses` -- LOCK TABLES `issue_statuses` WRITE; /*!40000 ALTER TABLE `issue_statuses` DISABLE KEYS */; INSERT INTO `issue_statuses` VALUES (1,'New',0,1,1),(2,'Assigned',0,0,2),(3,'Resolved',0,0,3),(4,'Feedback',0,0,4),(5,'Closed',1,0,5),(6,'Rejected',1,0,6); /*!40000 ALTER TABLE `issue_statuses` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `issues` -- DROP TABLE IF EXISTS `issues`; CREATE TABLE `issues` ( `id` int(11) NOT NULL auto_increment, `tracker_id` int(11) NOT NULL default '0', `project_id` int(11) NOT NULL default '0', `subject` varchar(255) NOT NULL default '', `description` text, `due_date` date default NULL, `category_id` int(11) default NULL, `status_id` int(11) NOT NULL default '0', `assigned_to_id` int(11) default NULL, `priority_id` int(11) NOT NULL default '0', `fixed_version_id` int(11) default NULL, `author_id` int(11) NOT NULL default '0', `lock_version` int(11) NOT NULL default '0', `created_on` datetime default NULL, `updated_on` datetime default NULL, `start_date` date default NULL, `done_ratio` int(11) NOT NULL default '0', `estimated_hours` float default NULL, PRIMARY KEY (`id`), KEY `issues_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `issues` -- LOCK TABLES `issues` WRITE; /*!40000 ALTER TABLE `issues` DISABLE KEYS */; /*!40000 ALTER TABLE `issues` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `journal_details` -- DROP TABLE IF EXISTS `journal_details`; CREATE TABLE `journal_details` ( `id` int(11) NOT NULL auto_increment, `journal_id` int(11) NOT NULL default '0', `property` varchar(30) NOT NULL default '', `prop_key` varchar(30) NOT NULL default '', `old_value` varchar(255) default NULL, `value` varchar(255) default NULL, PRIMARY KEY (`id`), KEY `journal_details_journal_id` (`journal_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `journal_details` -- LOCK TABLES `journal_details` WRITE; /*!40000 ALTER TABLE `journal_details` DISABLE KEYS */; /*!40000 ALTER TABLE `journal_details` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `journals` -- DROP TABLE IF EXISTS `journals`; CREATE TABLE `journals` ( `id` int(11) NOT NULL auto_increment, `journalized_id` int(11) NOT NULL default '0', `journalized_type` varchar(30) NOT NULL default '', `user_id` int(11) NOT NULL default '0', `notes` text, `created_on` datetime NOT NULL, PRIMARY KEY (`id`), KEY `journals_journalized_id` (`journalized_id`,`journalized_type`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `journals` -- LOCK TABLES `journals` WRITE; /*!40000 ALTER TABLE `journals` DISABLE KEYS */; /*!40000 ALTER TABLE `journals` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `members` -- DROP TABLE IF EXISTS `members`; CREATE TABLE `members` ( `id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL default '0', `project_id` int(11) NOT NULL default '0', `role_id` int(11) NOT NULL default '0', `created_on` datetime default NULL, `mail_notification` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `members` -- LOCK TABLES `members` WRITE; /*!40000 ALTER TABLE `members` DISABLE KEYS */; /*!40000 ALTER TABLE `members` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `messages` -- DROP TABLE IF EXISTS `messages`; CREATE TABLE `messages` ( `id` int(11) NOT NULL auto_increment, `board_id` int(11) NOT NULL, `parent_id` int(11) default NULL, `subject` varchar(255) NOT NULL default '', `content` text, `author_id` int(11) default NULL, `replies_count` int(11) NOT NULL default '0', `last_reply_id` int(11) default NULL, `created_on` datetime NOT NULL, `updated_on` datetime NOT NULL, `locked` tinyint(1) default '0', `sticky` int(11) default '0', PRIMARY KEY (`id`), KEY `messages_board_id` (`board_id`), KEY `messages_parent_id` (`parent_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `messages` -- LOCK TABLES `messages` WRITE; /*!40000 ALTER TABLE `messages` DISABLE KEYS */; /*!40000 ALTER TABLE `messages` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `news` -- DROP TABLE IF EXISTS `news`; CREATE TABLE `news` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) default NULL, `title` varchar(60) NOT NULL default '', `summary` varchar(255) default '', `description` text, `author_id` int(11) NOT NULL default '0', `created_on` datetime default NULL, `comments_count` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `news_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `news` -- LOCK TABLES `news` WRITE; /*!40000 ALTER TABLE `news` DISABLE KEYS */; /*!40000 ALTER TABLE `news` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `plugin_schema_info` -- DROP TABLE IF EXISTS `plugin_schema_info`; CREATE TABLE `plugin_schema_info` ( `plugin_name` varchar(255) default NULL, `version` int(11) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `plugin_schema_info` -- LOCK TABLES `plugin_schema_info` WRITE; /*!40000 ALTER TABLE `plugin_schema_info` DISABLE KEYS */; /*!40000 ALTER TABLE `plugin_schema_info` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `projects` -- DROP TABLE IF EXISTS `projects`; CREATE TABLE `projects` ( `id` int(11) NOT NULL auto_increment, `name` varchar(30) NOT NULL default '', `description` text, `homepage` varchar(255) default '', `is_public` tinyint(1) NOT NULL default '1', `parent_id` int(11) default NULL, `projects_count` int(11) default '0', `created_on` datetime default NULL, `updated_on` datetime default NULL, `identifier` varchar(20) default NULL, `status` int(11) NOT NULL default '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `projects` -- LOCK TABLES `projects` WRITE; /*!40000 ALTER TABLE `projects` DISABLE KEYS */; /*!40000 ALTER TABLE `projects` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `projects_trackers` -- DROP TABLE IF EXISTS `projects_trackers`; CREATE TABLE `projects_trackers` ( `project_id` int(11) NOT NULL default '0', `tracker_id` int(11) NOT NULL default '0', KEY `projects_trackers_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `projects_trackers` -- LOCK TABLES `projects_trackers` WRITE; /*!40000 ALTER TABLE `projects_trackers` DISABLE KEYS */; /*!40000 ALTER TABLE `projects_trackers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `queries` -- DROP TABLE IF EXISTS `queries`; CREATE TABLE `queries` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) default NULL, `name` varchar(255) NOT NULL default '', `filters` text, `user_id` int(11) NOT NULL default '0', `is_public` tinyint(1) NOT NULL default '0', `column_names` text, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `queries` -- LOCK TABLES `queries` WRITE; /*!40000 ALTER TABLE `queries` DISABLE KEYS */; /*!40000 ALTER TABLE `queries` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `repositories` -- DROP TABLE IF EXISTS `repositories`; CREATE TABLE `repositories` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) NOT NULL default '0', `url` varchar(255) NOT NULL default '', `login` varchar(60) default '', `password` varchar(60) default '', `root_url` varchar(255) default '', `type` varchar(255) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `repositories` -- LOCK TABLES `repositories` WRITE; /*!40000 ALTER TABLE `repositories` DISABLE KEYS */; /*!40000 ALTER TABLE `repositories` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `roles` -- DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( `id` int(11) NOT NULL auto_increment, `name` varchar(30) NOT NULL default '', `position` int(11) default '1', `assignable` tinyint(1) default '1', `builtin` int(11) NOT NULL default '0', `permissions` text, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `roles` -- LOCK TABLES `roles` WRITE; /*!40000 ALTER TABLE `roles` DISABLE KEYS */; INSERT INTO `roles` VALUES (1,'Non member',1,1,1,'--- \n- :add_issues\n- :add_issue_notes\n- :save_queries\n- :view_gantt\n- :view_calendar\n- :view_time_entries\n- :comment_news\n- :view_documents\n- :view_wiki_pages\n- :view_wiki_edits\n- :add_messages\n- :view_files\n- :browse_repository\n- :view_changesets\n'),(2,'Anonymous',2,1,2,'--- \n- :view_gantt\n- :view_calendar\n- :view_time_entries\n- :view_documents\n- :view_wiki_pages\n- :view_wiki_edits\n- :view_files\n- :browse_repository\n- :view_changesets\n'),(3,'Manager',3,1,0,'--- \n- :edit_project\n- :select_project_modules\n- :manage_members\n- :manage_versions\n- :manage_categories\n- :add_issues\n- :edit_issues\n- :manage_issue_relations\n- :add_issue_notes\n- :edit_issue_notes\n- :edit_own_issue_notes\n- :move_issues\n- :delete_issues\n- :manage_public_queries\n- :save_queries\n- :view_gantt\n- :view_calendar\n- :view_issue_watchers\n- :add_issue_watchers\n- :log_time\n- :view_time_entries\n- :edit_time_entries\n- :edit_own_time_entries\n- :manage_news\n- :comment_news\n- :manage_documents\n- :view_documents\n- :manage_files\n- :view_files\n- :manage_wiki\n- :rename_wiki_pages\n- :delete_wiki_pages\n- :view_wiki_pages\n- :view_wiki_edits\n- :edit_wiki_pages\n- :delete_wiki_pages_attachments\n- :protect_wiki_pages\n- :manage_repository\n- :browse_repository\n- :view_changesets\n- :commit_access\n- :manage_boards\n- :add_messages\n- :edit_messages\n- :edit_own_messages\n- :delete_messages\n- :delete_own_messages\n'),(4,'Developer',4,1,0,'--- \n- :manage_versions\n- :manage_categories\n- :add_issues\n- :edit_issues\n- :manage_issue_relations\n- :add_issue_notes\n- :save_queries\n- :view_gantt\n- :view_calendar\n- :log_time\n- :view_time_entries\n- :comment_news\n- :view_documents\n- :view_wiki_pages\n- :view_wiki_edits\n- :edit_wiki_pages\n- :delete_wiki_pages\n- :add_messages\n- :edit_own_messages\n- :view_files\n- :manage_files\n- :browse_repository\n- :view_changesets\n- :commit_access\n'),(5,'Reporter',5,1,0,'--- \n- :add_issues\n- :add_issue_notes\n- :save_queries\n- :view_gantt\n- :view_calendar\n- :log_time\n- :view_time_entries\n- :comment_news\n- :view_documents\n- :view_wiki_pages\n- :view_wiki_edits\n- :add_messages\n- :edit_own_messages\n- :view_files\n- :browse_repository\n- :view_changesets\n'); /*!40000 ALTER TABLE `roles` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `schema_migrations` -- DROP TABLE IF EXISTS `schema_migrations`; CREATE TABLE `schema_migrations` ( `version` varchar(255) NOT NULL, UNIQUE KEY `unique_schema_migrations` (`version`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `schema_migrations` -- LOCK TABLES `schema_migrations` WRITE; /*!40000 ALTER TABLE `schema_migrations` DISABLE KEYS */; INSERT INTO `schema_migrations` VALUES ('1'),('10'),('100'),('101'),('11'),('12'),('13'),('14'),('15'),('16'),('17'),('18'),('19'),('2'),('20'),('21'),('22'),('23'),('24'),('25'),('26'),('27'),('28'),('29'),('3'),('30'),('31'),('32'),('33'),('34'),('35'),('36'),('37'),('38'),('39'),('4'),('40'),('41'),('42'),('43'),('44'),('45'),('46'),('47'),('48'),('49'),('5'),('50'),('51'),('52'),('53'),('54'),('55'),('56'),('57'),('58'),('59'),('6'),('60'),('61'),('62'),('63'),('64'),('65'),('66'),('67'),('68'),('69'),('7'),('70'),('71'),('72'),('73'),('74'),('75'),('76'),('77'),('78'),('79'),('8'),('80'),('81'),('82'),('83'),('84'),('85'),('86'),('87'),('88'),('89'),('9'),('90'),('91'),('92'),('93'),('94'),('95'),('96'),('97'),('98'),('99'); /*!40000 ALTER TABLE `schema_migrations` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `settings` -- DROP TABLE IF EXISTS `settings`; CREATE TABLE `settings` ( `id` int(11) NOT NULL auto_increment, `name` varchar(30) NOT NULL default '', `value` text, `updated_on` datetime default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `settings` -- LOCK TABLES `settings` WRITE; /*!40000 ALTER TABLE `settings` DISABLE KEYS */; /*!40000 ALTER TABLE `settings` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `time_entries` -- DROP TABLE IF EXISTS `time_entries`; CREATE TABLE `time_entries` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `issue_id` int(11) default NULL, `hours` float NOT NULL, `comments` varchar(255) default NULL, `activity_id` int(11) NOT NULL, `spent_on` date NOT NULL, `tyear` int(11) NOT NULL, `tmonth` int(11) NOT NULL, `tweek` int(11) NOT NULL, `created_on` datetime NOT NULL, `updated_on` datetime NOT NULL, PRIMARY KEY (`id`), KEY `time_entries_project_id` (`project_id`), KEY `time_entries_issue_id` (`issue_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `time_entries` -- LOCK TABLES `time_entries` WRITE; /*!40000 ALTER TABLE `time_entries` DISABLE KEYS */; /*!40000 ALTER TABLE `time_entries` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `tokens` -- DROP TABLE IF EXISTS `tokens`; CREATE TABLE `tokens` ( `id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL default '0', `action` varchar(30) NOT NULL default '', `value` varchar(40) NOT NULL default '', `created_on` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `tokens` -- LOCK TABLES `tokens` WRITE; /*!40000 ALTER TABLE `tokens` DISABLE KEYS */; /*!40000 ALTER TABLE `tokens` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `trackers` -- DROP TABLE IF EXISTS `trackers`; CREATE TABLE `trackers` ( `id` int(11) NOT NULL auto_increment, `name` varchar(30) NOT NULL default '', `is_in_chlog` tinyint(1) NOT NULL default '0', `position` int(11) default '1', `is_in_roadmap` tinyint(1) NOT NULL default '1', PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Dumping data for table `trackers` -- LOCK TABLES `trackers` WRITE; /*!40000 ALTER TABLE `trackers` DISABLE KEYS */; INSERT INTO `trackers` VALUES (1,'Bug',1,1,0),(2,'Feature',1,2,1),(3,'Support',0,3,0); /*!40000 ALTER TABLE `trackers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_preferences` -- DROP TABLE IF EXISTS `user_preferences`; CREATE TABLE `user_preferences` ( `id` int(11) NOT NULL auto_increment, `user_id` int(11) NOT NULL default '0', `others` text, `hide_mail` tinyint(1) default '0', `time_zone` varchar(255) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `user_preferences` -- LOCK TABLES `user_preferences` WRITE; /*!40000 ALTER TABLE `user_preferences` DISABLE KEYS */; /*!40000 ALTER TABLE `user_preferences` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `login` varchar(30) NOT NULL default '', `hashed_password` varchar(40) NOT NULL default '', `firstname` varchar(30) NOT NULL default '', `lastname` varchar(30) NOT NULL default '', `mail` varchar(60) NOT NULL default '', `mail_notification` tinyint(1) NOT NULL default '1', `admin` tinyint(1) NOT NULL default '0', `status` int(11) NOT NULL default '1', `last_login_on` datetime default NULL, `language` varchar(5) default '', `auth_source_id` int(11) default NULL, `created_on` datetime default NULL, `updated_on` datetime default NULL, `type` varchar(255) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES (1,'admin','d033e22ae348aeb5660fc2140aec35850c4da997','Redmine','Admin','admin@example.net',1,1,1,NULL,'en',NULL,'2009-06-06 14:17:44','2009-06-06 14:17:44','User'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `versions` -- DROP TABLE IF EXISTS `versions`; CREATE TABLE `versions` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) NOT NULL default '0', `name` varchar(255) NOT NULL default '', `description` varchar(255) default '', `effective_date` date default NULL, `created_on` datetime default NULL, `updated_on` datetime default NULL, `wiki_page_title` varchar(255) default NULL, PRIMARY KEY (`id`), KEY `versions_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `versions` -- LOCK TABLES `versions` WRITE; /*!40000 ALTER TABLE `versions` DISABLE KEYS */; /*!40000 ALTER TABLE `versions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `watchers` -- DROP TABLE IF EXISTS `watchers`; CREATE TABLE `watchers` ( `id` int(11) NOT NULL auto_increment, `watchable_type` varchar(255) NOT NULL default '', `watchable_id` int(11) NOT NULL default '0', `user_id` int(11) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `watchers` -- LOCK TABLES `watchers` WRITE; /*!40000 ALTER TABLE `watchers` DISABLE KEYS */; /*!40000 ALTER TABLE `watchers` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `wiki_content_versions` -- DROP TABLE IF EXISTS `wiki_content_versions`; CREATE TABLE `wiki_content_versions` ( `id` int(11) NOT NULL auto_increment, `wiki_content_id` int(11) NOT NULL, `page_id` int(11) NOT NULL, `author_id` int(11) default NULL, `data` blob, `compression` varchar(6) default '', `comments` varchar(255) default '', `updated_on` datetime NOT NULL, `version` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `wiki_content_versions_wcid` (`wiki_content_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `wiki_content_versions` -- LOCK TABLES `wiki_content_versions` WRITE; /*!40000 ALTER TABLE `wiki_content_versions` DISABLE KEYS */; /*!40000 ALTER TABLE `wiki_content_versions` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `wiki_contents` -- DROP TABLE IF EXISTS `wiki_contents`; CREATE TABLE `wiki_contents` ( `id` int(11) NOT NULL auto_increment, `page_id` int(11) NOT NULL, `author_id` int(11) default NULL, `text` text, `comments` varchar(255) default '', `updated_on` datetime NOT NULL, `version` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `wiki_contents_page_id` (`page_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `wiki_contents` -- LOCK TABLES `wiki_contents` WRITE; /*!40000 ALTER TABLE `wiki_contents` DISABLE KEYS */; /*!40000 ALTER TABLE `wiki_contents` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `wiki_pages` -- DROP TABLE IF EXISTS `wiki_pages`; CREATE TABLE `wiki_pages` ( `id` int(11) NOT NULL auto_increment, `wiki_id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `created_on` datetime NOT NULL, `protected` tinyint(1) NOT NULL default '0', `parent_id` int(11) default NULL, PRIMARY KEY (`id`), KEY `wiki_pages_wiki_id_title` (`wiki_id`,`title`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `wiki_pages` -- LOCK TABLES `wiki_pages` WRITE; /*!40000 ALTER TABLE `wiki_pages` DISABLE KEYS */; /*!40000 ALTER TABLE `wiki_pages` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `wiki_redirects` -- DROP TABLE IF EXISTS `wiki_redirects`; CREATE TABLE `wiki_redirects` ( `id` int(11) NOT NULL auto_increment, `wiki_id` int(11) NOT NULL, `title` varchar(255) default NULL, `redirects_to` varchar(255) default NULL, `created_on` datetime NOT NULL, PRIMARY KEY (`id`), KEY `wiki_redirects_wiki_id_title` (`wiki_id`,`title`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `wiki_redirects` -- LOCK TABLES `wiki_redirects` WRITE; /*!40000 ALTER TABLE `wiki_redirects` DISABLE KEYS */; /*!40000 ALTER TABLE `wiki_redirects` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `wikis` -- DROP TABLE IF EXISTS `wikis`; CREATE TABLE `wikis` ( `id` int(11) NOT NULL auto_increment, `project_id` int(11) NOT NULL, `start_page` varchar(255) NOT NULL, `status` int(11) NOT NULL default '1', PRIMARY KEY (`id`), KEY `wikis_project_id` (`project_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `wikis` -- LOCK TABLES `wikis` WRITE; /*!40000 ALTER TABLE `wikis` DISABLE KEYS */; /*!40000 ALTER TABLE `wikis` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `workflows` -- DROP TABLE IF EXISTS `workflows`; CREATE TABLE `workflows` ( `id` int(11) NOT NULL auto_increment, `tracker_id` int(11) NOT NULL default '0', `old_status_id` int(11) NOT NULL default '0', `new_status_id` int(11) NOT NULL default '0', `role_id` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `wkfs_role_tracker_old_status` (`role_id`,`tracker_id`,`old_status_id`) ) ENGINE=MyISAM AUTO_INCREMENT=145 DEFAULT CHARSET=latin1; -- -- Dumping data for table `workflows` -- LOCK TABLES `workflows` WRITE; /*!40000 ALTER TABLE `workflows` DISABLE KEYS */; INSERT INTO `workflows` VALUES (1,1,1,2,3),(2,1,1,3,3),(3,1,1,4,3),(4,1,1,5,3),(5,1,1,6,3),(6,1,2,1,3),(7,1,2,3,3),(8,1,2,4,3),(9,1,2,5,3),(10,1,2,6,3),(11,1,3,1,3),(12,1,3,2,3),(13,1,3,4,3),(14,1,3,5,3),(15,1,3,6,3),(16,1,4,1,3),(17,1,4,2,3),(18,1,4,3,3),(19,1,4,5,3),(20,1,4,6,3),(21,1,5,1,3),(22,1,5,2,3),(23,1,5,3,3),(24,1,5,4,3),(25,1,5,6,3),(26,1,6,1,3),(27,1,6,2,3),(28,1,6,3,3),(29,1,6,4,3),(30,1,6,5,3),(31,2,1,2,3),(32,2,1,3,3),(33,2,1,4,3),(34,2,1,5,3),(35,2,1,6,3),(36,2,2,1,3),(37,2,2,3,3),(38,2,2,4,3),(39,2,2,5,3),(40,2,2,6,3),(41,2,3,1,3),(42,2,3,2,3),(43,2,3,4,3),(44,2,3,5,3),(45,2,3,6,3),(46,2,4,1,3),(47,2,4,2,3),(48,2,4,3,3),(49,2,4,5,3),(50,2,4,6,3),(51,2,5,1,3),(52,2,5,2,3),(53,2,5,3,3),(54,2,5,4,3),(55,2,5,6,3),(56,2,6,1,3),(57,2,6,2,3),(58,2,6,3,3),(59,2,6,4,3),(60,2,6,5,3),(61,3,1,2,3),(62,3,1,3,3),(63,3,1,4,3),(64,3,1,5,3),(65,3,1,6,3),(66,3,2,1,3),(67,3,2,3,3),(68,3,2,4,3),(69,3,2,5,3),(70,3,2,6,3),(71,3,3,1,3),(72,3,3,2,3),(73,3,3,4,3),(74,3,3,5,3),(75,3,3,6,3),(76,3,4,1,3),(77,3,4,2,3),(78,3,4,3,3),(79,3,4,5,3),(80,3,4,6,3),(81,3,5,1,3),(82,3,5,2,3),(83,3,5,3,3),(84,3,5,4,3),(85,3,5,6,3),(86,3,6,1,3),(87,3,6,2,3),(88,3,6,3,3),(89,3,6,4,3),(90,3,6,5,3),(91,1,1,2,4),(92,1,1,3,4),(93,1,1,4,4),(94,1,1,5,4),(95,1,2,3,4),(96,1,2,4,4),(97,1,2,5,4),(98,1,3,2,4),(99,1,3,4,4),(100,1,3,5,4),(101,1,4,2,4),(102,1,4,3,4),(103,1,4,5,4),(104,2,1,2,4),(105,2,1,3,4),(106,2,1,4,4),(107,2,1,5,4),(108,2,2,3,4),(109,2,2,4,4),(110,2,2,5,4),(111,2,3,2,4),(112,2,3,4,4),(113,2,3,5,4),(114,2,4,2,4),(115,2,4,3,4),(116,2,4,5,4),(117,3,1,2,4),(118,3,1,3,4),(119,3,1,4,4),(120,3,1,5,4),(121,3,2,3,4),(122,3,2,4,4),(123,3,2,5,4),(124,3,3,2,4),(125,3,3,4,4),(126,3,3,5,4),(127,3,4,2,4),(128,3,4,3,4),(129,3,4,5,4),(130,1,1,5,5),(131,1,2,5,5),(132,1,3,5,5),(133,1,4,5,5),(134,1,3,4,5),(135,2,1,5,5),(136,2,2,5,5),(137,2,3,5,5),(138,2,4,5,5),(139,2,3,4,5),(140,3,1,5,5),(141,3,2,5,5),(142,3,3,5,5),(143,3,4,5,5),(144,3,3,4,5); /*!40000 ALTER TABLE `workflows` ENABLE KEYS */; UNLOCK TABLES; /*!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-06-06 14:19:20