Structure for the avps table Structure for the bans table Structure fo

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
#
# Structure for the `avps` table :
#
#
# Structure for the `bans` table :
#
#
# Structure for the `blocks` table :
#
#
# Structure for the `bonus` table :
#
#
# Structure for the `bookmarks` table :
#
#
# Structure for the `captcha` table :
#
#
# Structure for the `categories` table :
#
#
# Structure for the `checkcomm` table :
#
#
# Structure for the `comments` table :
#
#
# Structure for the `comments_parsed` table :
#
#DROP TABLE IF EXISTS `comments_parsed`;
ALTER TABLE `comments_parsed` ADD COLUMS (
`cid` int(10) unsigned NOT NULL DEFAULT '0',
`text_hash` varchar(32) NOT NULL DEFAULT '',
`text_parsed` text NOT NULL,
PRIMARY KEY (`cid`)
) ENGINE=MyISAM;
#
# Structure for the `countries` table :
#
#
# Structure for the `faq` table :
#
#
# Structure for the `files` table :
#
#
# Structure for the `friends` table :
#
#
# Structure for the `indexreleases` table :
#
#DROP TABLE IF EXISTS `indexreleases`;
ALTER TABLE `indexreleases` ADD COLUMS (
`top` text NOT NULL,
`center` text NOT NULL,
`bottom` text NOT NULL,
`added` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
#
# Structure for the `invites` table :
#
#
# Structure for the `messages` table :
#
#
# Structure for the `news` table :
#
#
# Structure for the `notconnectablepmlog` table :
#
#
# Structure for the `orbital_blocks` table :
#
#DROP TABLE IF EXISTS `orbital_blocks`;
ALTER TABLE `orbital_blocks` ADD COLUMS (
`allow_hide` enum('yes','no') NOT NULL default 'yes',
PRIMARY KEY (`bid`),
KEY `title` (`title`),
KEY `weight` (`weight`),
KEY `active` (`active`)
) ENGINE=MyISAM;
#
# Structure for the `peers` table :
#
#
# Structure for the `pollanswers` table :
#
#
# Structure for the `polls` table :
#
#
# Structure for the `ratings` table :
#
#
# Structure for the `readtorrents` table :
#
#
# Structure for the `sessions` table :
#
#
# Structure for the `simpaty` table :
#
#
# Structure for the `sitelog` table :
#
#
# Structure for the `snatched` table :
#
#
# Structure for the `thanks` table :
#
#
# Structure for the `torrents` table :
#
#DROP TABLE IF EXISTS `torrents`;
ALTER TABLE `torrents` ADD COLUMS (
`keywords` varchar(255) NOT NULL default '',
`description` text NOT NULL,
`image3` text NOT NULL,
`image4` text NOT NULL,
`image5` text NOT NULL,
`remote_leechers` int(10) unsigned NOT NULL DEFAULT '0',
`remote_seeders` int(10) unsigned NOT NULL DEFAULT '0',
`last_mt_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`not_sticky` enum('yes','no') NOT NULL DEFAULT 'yes',
`multitracker` enum('yes','no') NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`),
UNIQUE KEY `info_hash` (`info_hash`),
KEY `owner` (`owner`),
KEY `visible` (`visible`),
KEY `category_visible` (`category`,`visible`),
KEY `vnsi` (`visible`, `not_sticky`, `id`)
) ENGINE=MyISAM;
#
# Structure for the `torrents_descr` table :
#
#DROP TABLE IF EXISTS `torrents_descr`;
ALTER TABLE `torrents_descr` ADD COLUMS (
`tid` int(10) unsigned NOT NULL DEFAULT '0',
`descr_hash` varchar(32) NOT NULL DEFAULT '',
`descr_parsed` text NOT NULL,
PRIMARY KEY (`tid`)
) ENGINE=MyISAM
#
# Structure for the `torrents_scrape` table :
#
#DROP TABLE IF EXISTS `torrents_scrape`;
ALTER TABLE `torrents_scrape` ADD COLUMS (
`tid` int(10) unsigned NOT NULL DEFAULT '0',
`info_hash` varbinary(40) NOT NULL DEFAULT '',
`url` varchar(100) NOT NULL DEFAULT '',
`seeders` int(10) unsigned NOT NULL DEFAULT '0',
`leechers` int(10) unsigned NOT NULL DEFAULT '0',
`completed` int(10) unsigned NOT NULL DEFAULT '0',
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`state` enum('ok','error') NOT NULL DEFAULT 'ok',
`error` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`info_hash`,`url`),
KEY `tid` (`tid`)
) ENGINE=MyISAM;
#
# Structure for the `users` table :
#
#DROP TABLE IF EXISTS `users`;
ALTER TABLE `users` ADD COLUMS (
`theme` varchar(40) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
KEY `status_added` (`status`,`added`),
KEY `ip` (`ip`),
KEY `uploaded` (`uploaded`),
KEY `downloaded` (`downloaded`),
KEY `country` (`country`),
KEY `last_access` (`last_access`),
KEY `enabled` (`enabled`),
KEY `warned` (`warned`),
KEY `passkey` (`passkey`),
KEY `user` (`id`,`status`,`enabled`)
) ENGINE=MyISAM;
#
# Structure for the `users_ban` table :
#
#DROP TABLE IF EXISTS `users_ban`;
ALTER TABLE `users_ban` ADD COLUMS (
`userid` int(10) unsigned NOT NULL default '0',
`disuntil` datetime NOT NULL default '0000-00-00 00:00:00',
`disby` int(10) unsigned NOT NULL default '0',
`reason` text NOT NULL,
UNIQUE KEY `userid` (`userid`)
) ENGINE=MyISAM;
#