| 1 | -- MySQL dump 10.11 |
|---|
| 2 | -- |
|---|
| 3 | -- Host: localhost Database: trac |
|---|
| 4 | -- ------------------------------------------------------ |
|---|
| 5 | -- Server version 5.0.37-community-log |
|---|
| 6 | |
|---|
| 7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; |
|---|
| 8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; |
|---|
| 9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; |
|---|
| 10 | /*!40101 SET NAMES utf8 */; |
|---|
| 11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; |
|---|
| 12 | /*!40103 SET TIME_ZONE='+00:00' */; |
|---|
| 13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; |
|---|
| 14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; |
|---|
| 15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; |
|---|
| 16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; |
|---|
| 17 | |
|---|
| 18 | -- |
|---|
| 19 | -- Table structure for table `attachment` |
|---|
| 20 | -- |
|---|
| 21 | |
|---|
| 22 | DROP TABLE IF EXISTS `attachment`; |
|---|
| 23 | CREATE TABLE `attachment` ( |
|---|
| 24 | `type` text NOT NULL, |
|---|
| 25 | `id` text NOT NULL, |
|---|
| 26 | `filename` text NOT NULL, |
|---|
| 27 | `size` int(11) default NULL, |
|---|
| 28 | `time` int(11) default NULL, |
|---|
| 29 | `description` text, |
|---|
| 30 | `author` text, |
|---|
| 31 | `ipnr` text, |
|---|
| 32 | PRIMARY KEY (`type`(111),`id`(111),`filename`(111)) |
|---|
| 33 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 34 | |
|---|
| 35 | -- |
|---|
| 36 | -- Table structure for table `auth_cookie` |
|---|
| 37 | -- |
|---|
| 38 | |
|---|
| 39 | DROP TABLE IF EXISTS `auth_cookie`; |
|---|
| 40 | CREATE TABLE `auth_cookie` ( |
|---|
| 41 | `cookie` text NOT NULL, |
|---|
| 42 | `name` text NOT NULL, |
|---|
| 43 | `ipnr` text NOT NULL, |
|---|
| 44 | `time` int(11) default NULL, |
|---|
| 45 | PRIMARY KEY (`cookie`(111),`ipnr`(111),`name`(111)) |
|---|
| 46 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 47 | |
|---|
| 48 | -- |
|---|
| 49 | -- Table structure for table `component` |
|---|
| 50 | -- |
|---|
| 51 | |
|---|
| 52 | DROP TABLE IF EXISTS `component`; |
|---|
| 53 | CREATE TABLE `component` ( |
|---|
| 54 | `name` text NOT NULL, |
|---|
| 55 | `owner` text, |
|---|
| 56 | `description` text, |
|---|
| 57 | PRIMARY KEY (`name`(255)) |
|---|
| 58 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 59 | |
|---|
| 60 | -- |
|---|
| 61 | -- Table structure for table `enum` |
|---|
| 62 | -- |
|---|
| 63 | |
|---|
| 64 | DROP TABLE IF EXISTS `enum`; |
|---|
| 65 | CREATE TABLE `enum` ( |
|---|
| 66 | `type` text NOT NULL, |
|---|
| 67 | `name` text NOT NULL, |
|---|
| 68 | `value` text, |
|---|
| 69 | PRIMARY KEY (`type`(166),`name`(166)) |
|---|
| 70 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 71 | |
|---|
| 72 | -- |
|---|
| 73 | -- Table structure for table `milestone` |
|---|
| 74 | -- |
|---|
| 75 | |
|---|
| 76 | DROP TABLE IF EXISTS `milestone`; |
|---|
| 77 | CREATE TABLE `milestone` ( |
|---|
| 78 | `name` text NOT NULL, |
|---|
| 79 | `due` int(11) default NULL, |
|---|
| 80 | `completed` int(11) default NULL, |
|---|
| 81 | `description` text, |
|---|
| 82 | PRIMARY KEY (`name`(255)) |
|---|
| 83 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 84 | |
|---|
| 85 | -- |
|---|
| 86 | -- Table structure for table `node_change` |
|---|
| 87 | -- |
|---|
| 88 | |
|---|
| 89 | DROP TABLE IF EXISTS `node_change`; |
|---|
| 90 | CREATE TABLE `node_change` ( |
|---|
| 91 | `rev` text NOT NULL, |
|---|
| 92 | `path` text NOT NULL, |
|---|
| 93 | `node_type` text, |
|---|
| 94 | `change_type` text NOT NULL, |
|---|
| 95 | `base_path` text, |
|---|
| 96 | `base_rev` text, |
|---|
| 97 | PRIMARY KEY (`rev`(20),`path`(255),`change_type`(2)), |
|---|
| 98 | KEY `node_change_rev_idx` (`rev`(20)) |
|---|
| 99 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 100 | |
|---|
| 101 | -- |
|---|
| 102 | -- Table structure for table `permission` |
|---|
| 103 | -- |
|---|
| 104 | |
|---|
| 105 | DROP TABLE IF EXISTS `permission`; |
|---|
| 106 | CREATE TABLE `permission` ( |
|---|
| 107 | `username` text NOT NULL, |
|---|
| 108 | `action` text NOT NULL, |
|---|
| 109 | PRIMARY KEY (`username`(166),`action`(166)) |
|---|
| 110 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 111 | |
|---|
| 112 | -- |
|---|
| 113 | -- Table structure for table `report` |
|---|
| 114 | -- |
|---|
| 115 | |
|---|
| 116 | DROP TABLE IF EXISTS `report`; |
|---|
| 117 | CREATE TABLE `report` ( |
|---|
| 118 | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| 119 | `author` text, |
|---|
| 120 | `title` text, |
|---|
| 121 | `query` text, |
|---|
| 122 | `description` text, |
|---|
| 123 | PRIMARY KEY (`id`) |
|---|
| 124 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 125 | |
|---|
| 126 | -- |
|---|
| 127 | -- Table structure for table `revision` |
|---|
| 128 | -- |
|---|
| 129 | |
|---|
| 130 | DROP TABLE IF EXISTS `revision`; |
|---|
| 131 | CREATE TABLE `revision` ( |
|---|
| 132 | `rev` text NOT NULL, |
|---|
| 133 | `time` int(11) default NULL, |
|---|
| 134 | `author` text, |
|---|
| 135 | `message` text, |
|---|
| 136 | PRIMARY KEY (`rev`(20)), |
|---|
| 137 | KEY `revision_time_idx` (`time`) |
|---|
| 138 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 139 | |
|---|
| 140 | -- |
|---|
| 141 | -- Table structure for table `session` |
|---|
| 142 | -- |
|---|
| 143 | |
|---|
| 144 | DROP TABLE IF EXISTS `session`; |
|---|
| 145 | CREATE TABLE `session` ( |
|---|
| 146 | `sid` text NOT NULL, |
|---|
| 147 | `authenticated` int(11) NOT NULL default '0', |
|---|
| 148 | `last_visit` int(11) default NULL, |
|---|
| 149 | PRIMARY KEY (`sid`(32),`authenticated`), |
|---|
| 150 | KEY `session_last_visit_idx` (`last_visit`), |
|---|
| 151 | KEY `session_authenticated_idx` (`authenticated`) |
|---|
| 152 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 153 | |
|---|
| 154 | -- |
|---|
| 155 | -- Table structure for table `session_attribute` |
|---|
| 156 | -- |
|---|
| 157 | |
|---|
| 158 | DROP TABLE IF EXISTS `session_attribute`; |
|---|
| 159 | CREATE TABLE `session_attribute` ( |
|---|
| 160 | `sid` text NOT NULL, |
|---|
| 161 | `authenticated` int(11) NOT NULL default '0', |
|---|
| 162 | `name` text NOT NULL, |
|---|
| 163 | `value` text, |
|---|
| 164 | PRIMARY KEY (`sid`(32),`authenticated`,`name`(64)) |
|---|
| 165 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 166 | |
|---|
| 167 | -- |
|---|
| 168 | -- Table structure for table `system` |
|---|
| 169 | -- |
|---|
| 170 | |
|---|
| 171 | DROP TABLE IF EXISTS `system`; |
|---|
| 172 | CREATE TABLE `system` ( |
|---|
| 173 | `name` text NOT NULL, |
|---|
| 174 | `value` text, |
|---|
| 175 | PRIMARY KEY (`name`(255)) |
|---|
| 176 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 177 | |
|---|
| 178 | -- |
|---|
| 179 | -- Table structure for table `ticket` |
|---|
| 180 | -- |
|---|
| 181 | |
|---|
| 182 | DROP TABLE IF EXISTS `ticket`; |
|---|
| 183 | CREATE TABLE `ticket` ( |
|---|
| 184 | `id` int(10) unsigned NOT NULL auto_increment, |
|---|
| 185 | `type` text, |
|---|
| 186 | `time` int(11) default NULL, |
|---|
| 187 | `changetime` int(11) default NULL, |
|---|
| 188 | `component` text, |
|---|
| 189 | `severity` text, |
|---|
| 190 | `priority` text, |
|---|
| 191 | `owner` text, |
|---|
| 192 | `reporter` text, |
|---|
| 193 | `cc` text, |
|---|
| 194 | `version` text, |
|---|
| 195 | `milestone` text, |
|---|
| 196 | `status` text, |
|---|
| 197 | `resolution` text, |
|---|
| 198 | `summary` text, |
|---|
| 199 | `description` text, |
|---|
| 200 | `keywords` text, |
|---|
| 201 | PRIMARY KEY (`id`), |
|---|
| 202 | KEY `ticket_time_idx` (`time`), |
|---|
| 203 | KEY `ticket_status_idx` (`status`(255)) |
|---|
| 204 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 205 | |
|---|
| 206 | -- |
|---|
| 207 | -- Table structure for table `ticket_change` |
|---|
| 208 | -- |
|---|
| 209 | |
|---|
| 210 | DROP TABLE IF EXISTS `ticket_change`; |
|---|
| 211 | CREATE TABLE `ticket_change` ( |
|---|
| 212 | `ticket` int(11) NOT NULL default '0', |
|---|
| 213 | `time` int(11) NOT NULL default '0', |
|---|
| 214 | `author` text, |
|---|
| 215 | `field` text NOT NULL, |
|---|
| 216 | `oldvalue` text, |
|---|
| 217 | `newvalue` text, |
|---|
| 218 | PRIMARY KEY (`ticket`,`time`,`field`(111)), |
|---|
| 219 | KEY `ticket_change_ticket_idx` (`ticket`), |
|---|
| 220 | KEY `ticket_change_time_idx` (`time`) |
|---|
| 221 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 222 | |
|---|
| 223 | -- |
|---|
| 224 | -- Table structure for table `ticket_custom` |
|---|
| 225 | -- |
|---|
| 226 | |
|---|
| 227 | DROP TABLE IF EXISTS `ticket_custom`; |
|---|
| 228 | CREATE TABLE `ticket_custom` ( |
|---|
| 229 | `ticket` int(11) NOT NULL default '0', |
|---|
| 230 | `name` text NOT NULL, |
|---|
| 231 | `value` text, |
|---|
| 232 | PRIMARY KEY (`ticket`,`name`(166)) |
|---|
| 233 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 234 | |
|---|
| 235 | -- |
|---|
| 236 | -- Table structure for table `version` |
|---|
| 237 | -- |
|---|
| 238 | |
|---|
| 239 | DROP TABLE IF EXISTS `version`; |
|---|
| 240 | CREATE TABLE `version` ( |
|---|
| 241 | `name` text NOT NULL, |
|---|
| 242 | `time` int(11) default NULL, |
|---|
| 243 | `description` text, |
|---|
| 244 | PRIMARY KEY (`name`(255)) |
|---|
| 245 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 246 | |
|---|
| 247 | -- |
|---|
| 248 | -- Table structure for table `wiki` |
|---|
| 249 | -- |
|---|
| 250 | |
|---|
| 251 | DROP TABLE IF EXISTS `wiki`; |
|---|
| 252 | CREATE TABLE `wiki` ( |
|---|
| 253 | `name` text NOT NULL, |
|---|
| 254 | `version` int(11) NOT NULL default '0', |
|---|
| 255 | `time` int(11) default NULL, |
|---|
| 256 | `author` text, |
|---|
| 257 | `ipnr` text, |
|---|
| 258 | `text` text, |
|---|
| 259 | `comment` text, |
|---|
| 260 | `readonly` int(11) default NULL, |
|---|
| 261 | PRIMARY KEY (`name`(166),`version`), |
|---|
| 262 | KEY `wiki_time_idx` (`time`) |
|---|
| 263 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
|---|
| 264 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; |
|---|
| 265 | |
|---|
| 266 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; |
|---|
| 267 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; |
|---|
| 268 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; |
|---|
| 269 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; |
|---|
| 270 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; |
|---|
| 271 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |
|---|
| 272 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; |
|---|
| 273 | |
|---|
| 274 | -- Dump completed on 2008-03-07 20:00:43 |
|---|