1 -- ------------------------------------------
2 -- Friendica 3.5-dev (Asparagus)
3 -- DB_UPDATE_VERSION 1194
4 -- ------------------------------------------
10 CREATE TABLE IF NOT EXISTS `addon` (
11 `id` int(11) NOT NULL auto_increment,
12 `name` varchar(255) NOT NULL DEFAULT '',
13 `version` varchar(255) NOT NULL DEFAULT '',
14 `installed` tinyint(1) NOT NULL DEFAULT 0,
15 `hidden` tinyint(1) NOT NULL DEFAULT 0,
16 `timestamp` bigint(20) NOT NULL DEFAULT 0,
17 `plugin_admin` tinyint(1) NOT NULL DEFAULT 0,
19 ) DEFAULT CHARSET=utf8;
24 CREATE TABLE IF NOT EXISTS `attach` (
25 `id` int(11) NOT NULL auto_increment,
26 `uid` int(11) NOT NULL DEFAULT 0,
27 `hash` varchar(64) NOT NULL DEFAULT '',
28 `filename` varchar(255) NOT NULL DEFAULT '',
29 `filetype` varchar(64) NOT NULL DEFAULT '',
30 `filesize` int(11) NOT NULL DEFAULT 0,
31 `data` longblob NOT NULL,
32 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
33 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
34 `allow_cid` mediumtext NOT NULL,
35 `allow_gid` mediumtext NOT NULL,
36 `deny_cid` mediumtext NOT NULL,
37 `deny_gid` mediumtext NOT NULL,
39 ) DEFAULT CHARSET=utf8;
44 CREATE TABLE IF NOT EXISTS `auth_codes` (
45 `id` varchar(40) NOT NULL,
46 `client_id` varchar(20) NOT NULL DEFAULT '',
47 `redirect_uri` varchar(200) NOT NULL DEFAULT '',
48 `expires` int(11) NOT NULL DEFAULT 0,
49 `scope` varchar(250) NOT NULL DEFAULT '',
51 ) DEFAULT CHARSET=utf8;
56 CREATE TABLE IF NOT EXISTS `cache` (
57 `k` varchar(255) NOT NULL,
59 `expire_mode` int(11) NOT NULL DEFAULT 0,
60 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
62 INDEX `updated` (`updated`)
63 ) DEFAULT CHARSET=utf8;
68 CREATE TABLE IF NOT EXISTS `challenge` (
69 `id` int(10) unsigned NOT NULL auto_increment,
70 `challenge` varchar(255) NOT NULL DEFAULT '',
71 `dfrn-id` varchar(255) NOT NULL DEFAULT '',
72 `expire` int(11) NOT NULL DEFAULT 0,
73 `type` varchar(255) NOT NULL DEFAULT '',
74 `last_update` varchar(255) NOT NULL DEFAULT '',
76 ) DEFAULT CHARSET=utf8;
81 CREATE TABLE IF NOT EXISTS `clients` (
82 `client_id` varchar(20) NOT NULL,
83 `pw` varchar(20) NOT NULL DEFAULT '',
84 `redirect_uri` varchar(200) NOT NULL DEFAULT '',
87 `uid` int(11) NOT NULL DEFAULT 0,
88 PRIMARY KEY(`client_id`)
89 ) DEFAULT CHARSET=utf8;
94 CREATE TABLE IF NOT EXISTS `config` (
95 `id` int(10) unsigned NOT NULL auto_increment,
96 `cat` varchar(255) NOT NULL DEFAULT '',
97 `k` varchar(255) NOT NULL DEFAULT '',
100 INDEX `cat_k` (`cat`(30),`k`(30))
101 ) DEFAULT CHARSET=utf8;
106 CREATE TABLE IF NOT EXISTS `contact` (
107 `id` int(11) NOT NULL auto_increment,
108 `uid` int(11) NOT NULL DEFAULT 0,
109 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
110 `self` tinyint(1) NOT NULL DEFAULT 0,
111 `remote_self` tinyint(1) NOT NULL DEFAULT 0,
112 `rel` tinyint(1) NOT NULL DEFAULT 0,
113 `duplex` tinyint(1) NOT NULL DEFAULT 0,
114 `network` varchar(255) NOT NULL DEFAULT '',
115 `name` varchar(255) NOT NULL DEFAULT '',
116 `nick` varchar(255) NOT NULL DEFAULT '',
117 `location` varchar(255) NOT NULL DEFAULT '',
118 `about` text NOT NULL,
119 `keywords` text NOT NULL,
120 `gender` varchar(32) NOT NULL DEFAULT '',
121 `attag` varchar(255) NOT NULL DEFAULT '',
122 `avatar` varchar(255) NOT NULL DEFAULT '',
123 `photo` text NOT NULL,
124 `thumb` text NOT NULL,
125 `micro` text NOT NULL,
126 `site-pubkey` text NOT NULL,
127 `issued-id` varchar(255) NOT NULL DEFAULT '',
128 `dfrn-id` varchar(255) NOT NULL DEFAULT '',
129 `url` varchar(255) NOT NULL DEFAULT '',
130 `nurl` varchar(255) NOT NULL DEFAULT '',
131 `addr` varchar(255) NOT NULL DEFAULT '',
132 `alias` varchar(255) NOT NULL DEFAULT '',
133 `pubkey` text NOT NULL,
134 `prvkey` text NOT NULL,
135 `batch` varchar(255) NOT NULL DEFAULT '',
136 `request` text NOT NULL,
137 `notify` text NOT NULL,
138 `poll` text NOT NULL,
139 `confirm` text NOT NULL,
140 `poco` text NOT NULL,
141 `aes_allow` tinyint(1) NOT NULL DEFAULT 0,
142 `ret-aes` tinyint(1) NOT NULL DEFAULT 0,
143 `usehub` tinyint(1) NOT NULL DEFAULT 0,
144 `subhub` tinyint(1) NOT NULL DEFAULT 0,
145 `hub-verify` varchar(255) NOT NULL DEFAULT '',
146 `last-update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
147 `success_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
148 `failure_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
149 `name-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
150 `uri-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
151 `avatar-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
152 `term-date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
153 `last-item` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
154 `priority` tinyint(3) NOT NULL DEFAULT 0,
155 `blocked` tinyint(1) NOT NULL DEFAULT 1,
156 `readonly` tinyint(1) NOT NULL DEFAULT 0,
157 `writable` tinyint(1) NOT NULL DEFAULT 0,
158 `forum` tinyint(1) NOT NULL DEFAULT 0,
159 `prv` tinyint(1) NOT NULL DEFAULT 0,
160 `hidden` tinyint(1) NOT NULL DEFAULT 0,
161 `archive` tinyint(1) NOT NULL DEFAULT 0,
162 `pending` tinyint(1) NOT NULL DEFAULT 1,
163 `rating` tinyint(1) NOT NULL DEFAULT 0,
164 `reason` text NOT NULL,
165 `closeness` tinyint(2) NOT NULL DEFAULT 99,
166 `info` mediumtext NOT NULL,
167 `profile-id` int(11) NOT NULL DEFAULT 0,
168 `bdyear` varchar(4) NOT NULL DEFAULT '',
169 `bd` date NOT NULL DEFAULT '0000-00-00',
170 `notify_new_posts` tinyint(1) NOT NULL DEFAULT 0,
171 `fetch_further_information` tinyint(1) NOT NULL DEFAULT 0,
172 `ffi_keyword_blacklist` mediumtext NOT NULL,
175 ) DEFAULT CHARSET=utf8;
180 CREATE TABLE IF NOT EXISTS `conv` (
181 `id` int(10) unsigned NOT NULL auto_increment,
182 `guid` varchar(64) NOT NULL DEFAULT '',
183 `recips` mediumtext NOT NULL,
184 `uid` int(11) NOT NULL DEFAULT 0,
185 `creator` varchar(255) NOT NULL DEFAULT '',
186 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
187 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
188 `subject` mediumtext NOT NULL,
191 ) DEFAULT CHARSET=utf8;
196 CREATE TABLE IF NOT EXISTS `deliverq` (
197 `id` int(10) unsigned NOT NULL auto_increment,
198 `cmd` varchar(32) NOT NULL DEFAULT '',
199 `item` int(11) NOT NULL DEFAULT 0,
200 `contact` int(11) NOT NULL DEFAULT 0,
202 ) DEFAULT CHARSET=utf8;
207 CREATE TABLE IF NOT EXISTS `event` (
208 `id` int(11) NOT NULL auto_increment,
209 `uid` int(11) NOT NULL DEFAULT 0,
210 `cid` int(11) NOT NULL DEFAULT 0,
211 `uri` varchar(255) NOT NULL DEFAULT '',
212 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
213 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
214 `start` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
215 `finish` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
216 `summary` text NOT NULL,
217 `desc` text NOT NULL,
218 `location` text NOT NULL,
219 `type` varchar(255) NOT NULL DEFAULT '',
220 `nofinish` tinyint(1) NOT NULL DEFAULT 0,
221 `adjust` tinyint(1) NOT NULL DEFAULT 1,
222 `ignore` tinyint(1) unsigned NOT NULL DEFAULT 0,
223 `allow_cid` mediumtext NOT NULL,
224 `allow_gid` mediumtext NOT NULL,
225 `deny_cid` mediumtext NOT NULL,
226 `deny_gid` mediumtext NOT NULL,
229 ) DEFAULT CHARSET=utf8;
234 CREATE TABLE IF NOT EXISTS `fcontact` (
235 `id` int(10) unsigned NOT NULL auto_increment,
236 `url` varchar(255) NOT NULL DEFAULT '',
237 `name` varchar(255) NOT NULL DEFAULT '',
238 `photo` varchar(255) NOT NULL DEFAULT '',
239 `request` varchar(255) NOT NULL DEFAULT '',
240 `nick` varchar(255) NOT NULL DEFAULT '',
241 `addr` varchar(255) NOT NULL DEFAULT '',
242 `batch` varchar(255) NOT NULL DEFAULT '',
243 `notify` varchar(255) NOT NULL DEFAULT '',
244 `poll` varchar(255) NOT NULL DEFAULT '',
245 `confirm` varchar(255) NOT NULL DEFAULT '',
246 `priority` tinyint(1) NOT NULL DEFAULT 0,
247 `network` varchar(32) NOT NULL DEFAULT '',
248 `alias` varchar(255) NOT NULL DEFAULT '',
249 `pubkey` text NOT NULL,
250 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
252 INDEX `addr` (`addr`)
253 ) DEFAULT CHARSET=utf8;
258 CREATE TABLE IF NOT EXISTS `ffinder` (
259 `id` int(10) unsigned NOT NULL auto_increment,
260 `uid` int(10) unsigned NOT NULL DEFAULT 0,
261 `cid` int(10) unsigned NOT NULL DEFAULT 0,
262 `fid` int(10) unsigned NOT NULL DEFAULT 0,
264 ) DEFAULT CHARSET=utf8;
269 CREATE TABLE IF NOT EXISTS `fserver` (
270 `id` int(11) NOT NULL auto_increment,
271 `server` varchar(255) NOT NULL DEFAULT '',
272 `posturl` varchar(255) NOT NULL DEFAULT '',
275 INDEX `server` (`server`)
276 ) DEFAULT CHARSET=utf8;
281 CREATE TABLE IF NOT EXISTS `fsuggest` (
282 `id` int(11) NOT NULL auto_increment,
283 `uid` int(11) NOT NULL DEFAULT 0,
284 `cid` int(11) NOT NULL DEFAULT 0,
285 `name` varchar(255) NOT NULL DEFAULT '',
286 `url` varchar(255) NOT NULL DEFAULT '',
287 `request` varchar(255) NOT NULL DEFAULT '',
288 `photo` varchar(255) NOT NULL DEFAULT '',
289 `note` text NOT NULL,
290 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
292 ) DEFAULT CHARSET=utf8;
297 CREATE TABLE IF NOT EXISTS `gcign` (
298 `id` int(11) NOT NULL auto_increment,
299 `uid` int(11) NOT NULL DEFAULT 0,
300 `gcid` int(11) NOT NULL DEFAULT 0,
303 INDEX `gcid` (`gcid`)
304 ) DEFAULT CHARSET=utf8;
309 CREATE TABLE IF NOT EXISTS `gcontact` (
310 `id` int(10) unsigned NOT NULL auto_increment,
311 `name` varchar(255) NOT NULL DEFAULT '',
312 `nick` varchar(255) NOT NULL DEFAULT '',
313 `url` varchar(255) NOT NULL DEFAULT '',
314 `nurl` varchar(255) NOT NULL DEFAULT '',
315 `photo` varchar(255) NOT NULL DEFAULT '',
316 `connect` varchar(255) NOT NULL DEFAULT '',
317 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
318 `updated` datetime DEFAULT '0000-00-00 00:00:00',
319 `last_contact` datetime DEFAULT '0000-00-00 00:00:00',
320 `last_failure` datetime DEFAULT '0000-00-00 00:00:00',
321 `location` varchar(255) NOT NULL DEFAULT '',
322 `about` text NOT NULL,
323 `keywords` text NOT NULL,
324 `gender` varchar(32) NOT NULL DEFAULT '',
325 `birthday` varchar(32) NOT NULL DEFAULT '0000-00-00',
326 `community` tinyint(1) NOT NULL DEFAULT 0,
327 `hide` tinyint(1) NOT NULL DEFAULT 0,
328 `nsfw` tinyint(1) NOT NULL DEFAULT 0,
329 `network` varchar(255) NOT NULL DEFAULT '',
330 `addr` varchar(255) NOT NULL DEFAULT '',
331 `notify` text NOT NULL,
332 `alias` varchar(255) NOT NULL DEFAULT '',
333 `generation` tinyint(3) NOT NULL DEFAULT 0,
334 `server_url` varchar(255) NOT NULL DEFAULT '',
336 INDEX `nurl` (`nurl`),
337 INDEX `updated` (`updated`)
338 ) DEFAULT CHARSET=utf8;
343 CREATE TABLE IF NOT EXISTS `glink` (
344 `id` int(10) unsigned NOT NULL auto_increment,
345 `cid` int(11) NOT NULL DEFAULT 0,
346 `uid` int(11) NOT NULL DEFAULT 0,
347 `gcid` int(11) NOT NULL DEFAULT 0,
348 `zcid` int(11) NOT NULL DEFAULT 0,
349 `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
351 INDEX `cid_uid_gcid_zcid` (`cid`,`uid`,`gcid`,`zcid`),
352 INDEX `gcid` (`gcid`),
353 INDEX `zcid` (`zcid`)
354 ) DEFAULT CHARSET=utf8;
359 CREATE TABLE IF NOT EXISTS `group` (
360 `id` int(10) unsigned NOT NULL auto_increment,
361 `uid` int(10) unsigned NOT NULL DEFAULT 0,
362 `visible` tinyint(1) NOT NULL DEFAULT 0,
363 `deleted` tinyint(1) NOT NULL DEFAULT 0,
364 `name` varchar(255) NOT NULL DEFAULT '',
367 ) DEFAULT CHARSET=utf8;
370 -- TABLE group_member
372 CREATE TABLE IF NOT EXISTS `group_member` (
373 `id` int(10) unsigned NOT NULL auto_increment,
374 `uid` int(10) unsigned NOT NULL DEFAULT 0,
375 `gid` int(10) unsigned NOT NULL DEFAULT 0,
376 `contact-id` int(10) unsigned NOT NULL DEFAULT 0,
378 INDEX `uid_gid_contactid` (`uid`,`gid`,`contact-id`)
379 ) DEFAULT CHARSET=utf8;
384 CREATE TABLE IF NOT EXISTS `gserver` (
385 `id` int(10) unsigned NOT NULL auto_increment,
386 `url` varchar(255) NOT NULL DEFAULT '',
387 `nurl` varchar(255) NOT NULL DEFAULT '',
388 `version` varchar(255) NOT NULL DEFAULT '',
389 `site_name` varchar(255) NOT NULL DEFAULT '',
390 `info` text NOT NULL,
391 `register_policy` tinyint(1) NOT NULL DEFAULT 0,
392 `poco` varchar(255) NOT NULL DEFAULT '',
393 `noscrape` varchar(255) NOT NULL DEFAULT '',
394 `network` varchar(32) NOT NULL DEFAULT '',
395 `platform` varchar(255) NOT NULL DEFAULT '',
396 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
397 `last_poco_query` datetime DEFAULT '0000-00-00 00:00:00',
398 `last_contact` datetime DEFAULT '0000-00-00 00:00:00',
399 `last_failure` datetime DEFAULT '0000-00-00 00:00:00',
401 INDEX `nurl` (`nurl`)
402 ) DEFAULT CHARSET=utf8;
407 CREATE TABLE IF NOT EXISTS `hook` (
408 `id` int(11) NOT NULL auto_increment,
409 `hook` varchar(255) NOT NULL DEFAULT '',
410 `file` varchar(255) NOT NULL DEFAULT '',
411 `function` varchar(255) NOT NULL DEFAULT '',
412 `priority` int(11) unsigned NOT NULL DEFAULT 0,
414 INDEX `hook_file_function` (`hook`(30),`file`(60),`function`(30))
415 ) DEFAULT CHARSET=utf8;
420 CREATE TABLE IF NOT EXISTS `intro` (
421 `id` int(10) unsigned NOT NULL auto_increment,
422 `uid` int(10) unsigned NOT NULL DEFAULT 0,
423 `fid` int(11) NOT NULL DEFAULT 0,
424 `contact-id` int(11) NOT NULL DEFAULT 0,
425 `knowyou` tinyint(1) NOT NULL DEFAULT 0,
426 `duplex` tinyint(1) NOT NULL DEFAULT 0,
427 `note` text NOT NULL,
428 `hash` varchar(255) NOT NULL DEFAULT '',
429 `datetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
430 `blocked` tinyint(1) NOT NULL DEFAULT 1,
431 `ignore` tinyint(1) NOT NULL DEFAULT 0,
433 ) DEFAULT CHARSET=utf8;
438 CREATE TABLE IF NOT EXISTS `item` (
439 `id` int(10) unsigned NOT NULL auto_increment,
440 `guid` varchar(255) NOT NULL DEFAULT '',
441 `uri` varchar(255) NOT NULL DEFAULT '',
442 `uid` int(10) unsigned NOT NULL DEFAULT 0,
443 `contact-id` int(11) NOT NULL DEFAULT 0,
444 `gcontact-id` int(11) unsigned NOT NULL DEFAULT 0,
445 `type` varchar(255) NOT NULL DEFAULT '',
446 `wall` tinyint(1) NOT NULL DEFAULT 0,
447 `gravity` tinyint(1) NOT NULL DEFAULT 0,
448 `parent` int(10) unsigned NOT NULL DEFAULT 0,
449 `parent-uri` varchar(255) NOT NULL DEFAULT '',
450 `extid` varchar(255) NOT NULL DEFAULT '',
451 `thr-parent` varchar(255) NOT NULL DEFAULT '',
452 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
453 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
454 `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
455 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
456 `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
457 `owner-name` varchar(255) NOT NULL DEFAULT '',
458 `owner-link` varchar(255) NOT NULL DEFAULT '',
459 `owner-avatar` varchar(255) NOT NULL DEFAULT '',
460 `author-name` varchar(255) NOT NULL DEFAULT '',
461 `author-link` varchar(255) NOT NULL DEFAULT '',
462 `author-avatar` varchar(255) NOT NULL DEFAULT '',
463 `title` varchar(255) NOT NULL DEFAULT '',
464 `body` mediumtext NOT NULL,
465 `app` varchar(255) NOT NULL DEFAULT '',
466 `verb` varchar(255) NOT NULL DEFAULT '',
467 `object-type` varchar(255) NOT NULL DEFAULT '',
468 `object` text NOT NULL,
469 `target-type` varchar(255) NOT NULL DEFAULT '',
470 `target` text NOT NULL,
471 `postopts` text NOT NULL,
472 `plink` varchar(255) NOT NULL DEFAULT '',
473 `resource-id` varchar(255) NOT NULL DEFAULT '',
474 `event-id` int(11) NOT NULL DEFAULT 0,
475 `tag` mediumtext NOT NULL,
476 `attach` mediumtext NOT NULL,
477 `inform` mediumtext NOT NULL,
478 `file` mediumtext NOT NULL,
479 `location` varchar(255) NOT NULL DEFAULT '',
480 `coord` varchar(255) NOT NULL DEFAULT '',
481 `allow_cid` mediumtext NOT NULL,
482 `allow_gid` mediumtext NOT NULL,
483 `deny_cid` mediumtext NOT NULL,
484 `deny_gid` mediumtext NOT NULL,
485 `private` tinyint(1) NOT NULL DEFAULT 0,
486 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
487 `moderated` tinyint(1) NOT NULL DEFAULT 0,
488 `visible` tinyint(1) NOT NULL DEFAULT 0,
489 `spam` tinyint(1) NOT NULL DEFAULT 0,
490 `starred` tinyint(1) NOT NULL DEFAULT 0,
491 `bookmark` tinyint(1) NOT NULL DEFAULT 0,
492 `unseen` tinyint(1) NOT NULL DEFAULT 1,
493 `deleted` tinyint(1) NOT NULL DEFAULT 0,
494 `origin` tinyint(1) NOT NULL DEFAULT 0,
495 `forum_mode` tinyint(1) NOT NULL DEFAULT 0,
496 `last-child` tinyint(1) unsigned NOT NULL DEFAULT 1,
497 `mention` tinyint(1) NOT NULL DEFAULT 0,
498 `network` varchar(32) NOT NULL DEFAULT '',
499 `rendered-hash` varchar(32) NOT NULL DEFAULT '',
500 `rendered-html` mediumtext NOT NULL,
501 `global` tinyint(1) NOT NULL DEFAULT 0,
503 INDEX `guid` (`guid`),
505 INDEX `parent` (`parent`),
506 INDEX `parent-uri` (`parent-uri`),
507 INDEX `extid` (`extid`),
508 INDEX `uid_id` (`uid`,`id`),
509 INDEX `uid_created` (`uid`,`created`),
510 INDEX `uid_unseen` (`uid`,`unseen`),
511 INDEX `uid_network_received` (`uid`,`network`,`received`),
512 INDEX `uid_received` (`uid`,`received`),
513 INDEX `uid_network_commented` (`uid`,`network`,`commented`),
514 INDEX `uid_commented` (`uid`,`commented`),
515 INDEX `uid_title` (`uid`,`title`),
516 INDEX `uid_thrparent` (`uid`,`thr-parent`),
517 INDEX `uid_parenturi` (`uid`,`parent-uri`),
518 INDEX `uid_contactid_created` (`uid`,`contact-id`,`created`),
519 INDEX `gcontactid_uid_created` (`gcontact-id`,`uid`,`created`),
520 INDEX `wall_body` (`wall`,`body`(6)),
521 INDEX `uid_visible_moderated_created` (`uid`,`visible`,`moderated`,`created`),
522 INDEX `uid_uri` (`uid`,`uri`),
523 INDEX `uid_wall_created` (`uid`,`wall`,`created`),
524 INDEX `resource-id` (`resource-id`),
525 INDEX `uid_type` (`uid`,`type`),
526 INDEX `uid_starred` (`uid`,`starred`),
527 INDEX `contactid_allowcid_allowpid_denycid_denygid` (`contact-id`,`allow_cid`(10),`allow_gid`(10),`deny_cid`(10),`deny_gid`(10)),
528 INDEX `uid_wall_parent_created` (`uid`,`wall`,`parent`,`created`),
529 INDEX `uid_type_changed` (`uid`,`type`,`changed`),
530 INDEX `contactid_verb` (`contact-id`,`verb`),
531 INDEX `deleted_changed` (`deleted`,`changed`),
532 INDEX `uid_wall_changed` (`uid`,`wall`,`changed`),
533 INDEX `uid_eventid` (`uid`,`event-id`),
534 INDEX `uid_authorlink` (`uid`,`author-link`),
535 INDEX `uid_ownerlink` (`uid`,`owner-link`)
536 ) DEFAULT CHARSET=utf8;
541 CREATE TABLE IF NOT EXISTS `item_id` (
542 `id` int(11) NOT NULL auto_increment,
543 `iid` int(11) NOT NULL DEFAULT 0,
544 `uid` int(11) NOT NULL DEFAULT 0,
545 `sid` varchar(255) NOT NULL DEFAULT '',
546 `service` varchar(255) NOT NULL DEFAULT '',
550 INDEX `service` (`service`),
552 ) DEFAULT CHARSET=utf8;
557 CREATE TABLE IF NOT EXISTS `locks` (
558 `id` int(11) NOT NULL auto_increment,
559 `name` varchar(128) NOT NULL DEFAULT '',
560 `locked` tinyint(1) NOT NULL DEFAULT 0,
561 `created` datetime DEFAULT '0000-00-00 00:00:00',
563 ) DEFAULT CHARSET=utf8;
568 CREATE TABLE IF NOT EXISTS `mail` (
569 `id` int(10) unsigned NOT NULL auto_increment,
570 `uid` int(10) unsigned NOT NULL DEFAULT 0,
571 `guid` varchar(64) NOT NULL DEFAULT '',
572 `from-name` varchar(255) NOT NULL DEFAULT '',
573 `from-photo` varchar(255) NOT NULL DEFAULT '',
574 `from-url` varchar(255) NOT NULL DEFAULT '',
575 `contact-id` varchar(255) NOT NULL DEFAULT '',
576 `convid` int(11) unsigned NOT NULL DEFAULT 0,
577 `title` varchar(255) NOT NULL DEFAULT '',
578 `body` mediumtext NOT NULL,
579 `seen` tinyint(1) NOT NULL DEFAULT 0,
580 `reply` tinyint(1) NOT NULL DEFAULT 0,
581 `replied` tinyint(1) NOT NULL DEFAULT 0,
582 `unknown` tinyint(1) NOT NULL DEFAULT 0,
583 `uri` varchar(255) NOT NULL DEFAULT '',
584 `parent-uri` varchar(255) NOT NULL DEFAULT '',
585 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
588 INDEX `guid` (`guid`),
589 INDEX `convid` (`convid`),
590 INDEX `reply` (`reply`),
592 INDEX `parent-uri` (`parent-uri`)
593 ) DEFAULT CHARSET=utf8;
598 CREATE TABLE IF NOT EXISTS `mailacct` (
599 `id` int(11) NOT NULL auto_increment,
600 `uid` int(11) NOT NULL DEFAULT 0,
601 `server` varchar(255) NOT NULL DEFAULT '',
602 `port` int(11) NOT NULL DEFAULT 0,
603 `ssltype` varchar(16) NOT NULL DEFAULT '',
604 `mailbox` varchar(255) NOT NULL DEFAULT '',
605 `user` varchar(255) NOT NULL DEFAULT '',
606 `pass` text NOT NULL,
607 `reply_to` varchar(255) NOT NULL DEFAULT '',
608 `action` int(11) NOT NULL DEFAULT 0,
609 `movetofolder` varchar(255) NOT NULL DEFAULT '',
610 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
611 `last_check` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
613 ) DEFAULT CHARSET=utf8;
618 CREATE TABLE IF NOT EXISTS `manage` (
619 `id` int(11) NOT NULL auto_increment,
620 `uid` int(11) NOT NULL DEFAULT 0,
621 `mid` int(11) NOT NULL DEFAULT 0,
623 INDEX `uid_mid` (`uid`,`mid`)
624 ) DEFAULT CHARSET=utf8;
629 CREATE TABLE IF NOT EXISTS `notify` (
630 `id` int(11) NOT NULL auto_increment,
631 `hash` varchar(64) NOT NULL DEFAULT '',
632 `type` int(11) NOT NULL DEFAULT 0,
633 `name` varchar(255) NOT NULL DEFAULT '',
634 `url` varchar(255) NOT NULL DEFAULT '',
635 `photo` varchar(255) NOT NULL DEFAULT '',
636 `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
637 `msg` mediumtext NOT NULL,
638 `uid` int(11) NOT NULL DEFAULT 0,
639 `link` varchar(255) NOT NULL DEFAULT '',
640 `iid` int(11) NOT NULL DEFAULT 0,
641 `parent` int(11) NOT NULL DEFAULT 0,
642 `seen` tinyint(1) NOT NULL DEFAULT 0,
643 `verb` varchar(255) NOT NULL DEFAULT '',
644 `otype` varchar(16) NOT NULL DEFAULT '',
647 ) DEFAULT CHARSET=utf8;
650 -- TABLE notify-threads
652 CREATE TABLE IF NOT EXISTS `notify-threads` (
653 `id` int(11) NOT NULL auto_increment,
654 `notify-id` int(11) NOT NULL DEFAULT 0,
655 `master-parent-item` int(10) unsigned NOT NULL DEFAULT 0,
656 `parent-item` int(10) unsigned NOT NULL DEFAULT 0,
657 `receiver-uid` int(11) NOT NULL DEFAULT 0,
659 INDEX `master-parent-item` (`master-parent-item`),
660 INDEX `receiver-uid` (`receiver-uid`)
661 ) DEFAULT CHARSET=utf8;
666 CREATE TABLE IF NOT EXISTS `oembed` (
667 `url` varchar(255) NOT NULL,
668 `content` text NOT NULL,
669 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
671 INDEX `created` (`created`)
672 ) DEFAULT CHARSET=utf8;
677 CREATE TABLE IF NOT EXISTS `parsed_url` (
678 `url` varchar(255) NOT NULL,
679 `guessing` tinyint(1) NOT NULL DEFAULT 0,
680 `oembed` tinyint(1) NOT NULL DEFAULT 0,
681 `content` text NOT NULL,
682 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
683 PRIMARY KEY(`url`,`guessing`,`oembed`),
684 INDEX `created` (`created`)
685 ) DEFAULT CHARSET=utf8;
690 CREATE TABLE IF NOT EXISTS `pconfig` (
691 `id` int(11) NOT NULL auto_increment,
692 `uid` int(11) NOT NULL DEFAULT 0,
693 `cat` varchar(255) NOT NULL DEFAULT '',
694 `k` varchar(255) NOT NULL DEFAULT '',
695 `v` mediumtext NOT NULL,
697 INDEX `uid_cat_k` (`uid`,`cat`(30),`k`(30))
698 ) DEFAULT CHARSET=utf8;
703 CREATE TABLE IF NOT EXISTS `photo` (
704 `id` int(10) unsigned NOT NULL auto_increment,
705 `uid` int(10) unsigned NOT NULL DEFAULT 0,
706 `contact-id` int(10) unsigned NOT NULL DEFAULT 0,
707 `guid` varchar(64) NOT NULL DEFAULT '',
708 `resource-id` varchar(255) NOT NULL DEFAULT '',
709 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
710 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
711 `title` varchar(255) NOT NULL DEFAULT '',
712 `desc` text NOT NULL,
713 `album` varchar(255) NOT NULL DEFAULT '',
714 `filename` varchar(255) NOT NULL DEFAULT '',
715 `type` varchar(128) NOT NULL DEFAULT 'image/jpeg',
716 `height` smallint(6) NOT NULL DEFAULT 0,
717 `width` smallint(6) NOT NULL DEFAULT 0,
718 `datasize` int(10) unsigned NOT NULL DEFAULT 0,
719 `data` mediumblob NOT NULL,
720 `scale` tinyint(3) NOT NULL DEFAULT 0,
721 `profile` tinyint(1) NOT NULL DEFAULT 0,
722 `allow_cid` mediumtext NOT NULL,
723 `allow_gid` mediumtext NOT NULL,
724 `deny_cid` mediumtext NOT NULL,
725 `deny_gid` mediumtext NOT NULL,
728 INDEX `resource-id` (`resource-id`),
729 INDEX `guid` (`guid`)
730 ) DEFAULT CHARSET=utf8;
735 CREATE TABLE IF NOT EXISTS `poll` (
736 `id` int(11) NOT NULL auto_increment,
737 `uid` int(11) NOT NULL DEFAULT 0,
738 `q0` mediumtext NOT NULL,
739 `q1` mediumtext NOT NULL,
740 `q2` mediumtext NOT NULL,
741 `q3` mediumtext NOT NULL,
742 `q4` mediumtext NOT NULL,
743 `q5` mediumtext NOT NULL,
744 `q6` mediumtext NOT NULL,
745 `q7` mediumtext NOT NULL,
746 `q8` mediumtext NOT NULL,
747 `q9` mediumtext NOT NULL,
750 ) DEFAULT CHARSET=utf8;
755 CREATE TABLE IF NOT EXISTS `poll_result` (
756 `id` int(11) NOT NULL auto_increment,
757 `poll_id` int(11) NOT NULL DEFAULT 0,
758 `choice` int(11) NOT NULL DEFAULT 0,
760 INDEX `poll_id` (`poll_id`),
761 INDEX `choice` (`choice`)
762 ) DEFAULT CHARSET=utf8;
767 CREATE TABLE IF NOT EXISTS `profile` (
768 `id` int(11) NOT NULL auto_increment,
769 `uid` int(11) NOT NULL DEFAULT 0,
770 `profile-name` varchar(255) NOT NULL DEFAULT '',
771 `is-default` tinyint(1) NOT NULL DEFAULT 0,
772 `hide-friends` tinyint(1) NOT NULL DEFAULT 0,
773 `name` varchar(255) NOT NULL DEFAULT '',
774 `pdesc` varchar(255) NOT NULL DEFAULT '',
775 `dob` varchar(32) NOT NULL DEFAULT '0000-00-00',
776 `address` varchar(255) NOT NULL DEFAULT '',
777 `locality` varchar(255) NOT NULL DEFAULT '',
778 `region` varchar(255) NOT NULL DEFAULT '',
779 `postal-code` varchar(32) NOT NULL DEFAULT '',
780 `country-name` varchar(255) NOT NULL DEFAULT '',
781 `hometown` varchar(255) NOT NULL DEFAULT '',
782 `gender` varchar(32) NOT NULL DEFAULT '',
783 `marital` varchar(255) NOT NULL DEFAULT '',
784 `with` text NOT NULL,
785 `howlong` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
786 `sexual` varchar(255) NOT NULL DEFAULT '',
787 `politic` varchar(255) NOT NULL DEFAULT '',
788 `religion` varchar(255) NOT NULL DEFAULT '',
789 `pub_keywords` text NOT NULL,
790 `prv_keywords` text NOT NULL,
791 `likes` text NOT NULL,
792 `dislikes` text NOT NULL,
793 `about` text NOT NULL,
794 `summary` varchar(255) NOT NULL DEFAULT '',
795 `music` text NOT NULL,
796 `book` text NOT NULL,
798 `film` text NOT NULL,
799 `interest` text NOT NULL,
800 `romance` text NOT NULL,
801 `work` text NOT NULL,
802 `education` text NOT NULL,
803 `contact` text NOT NULL,
804 `homepage` varchar(255) NOT NULL DEFAULT '',
805 `photo` varchar(255) NOT NULL DEFAULT '',
806 `thumb` varchar(255) NOT NULL DEFAULT '',
807 `publish` tinyint(1) NOT NULL DEFAULT 0,
808 `net-publish` tinyint(1) NOT NULL DEFAULT 0,
810 INDEX `hometown` (`hometown`)
811 ) DEFAULT CHARSET=utf8;
814 -- TABLE profile_check
816 CREATE TABLE IF NOT EXISTS `profile_check` (
817 `id` int(10) unsigned NOT NULL auto_increment,
818 `uid` int(10) unsigned NOT NULL DEFAULT 0,
819 `cid` int(10) unsigned NOT NULL DEFAULT 0,
820 `dfrn_id` varchar(255) NOT NULL DEFAULT '',
821 `sec` varchar(255) NOT NULL DEFAULT '',
822 `expire` int(11) NOT NULL DEFAULT 0,
824 ) DEFAULT CHARSET=utf8;
827 -- TABLE push_subscriber
829 CREATE TABLE IF NOT EXISTS `push_subscriber` (
830 `id` int(11) NOT NULL auto_increment,
831 `uid` int(11) NOT NULL DEFAULT 0,
832 `callback_url` varchar(255) NOT NULL DEFAULT '',
833 `topic` varchar(255) NOT NULL DEFAULT '',
834 `nickname` varchar(255) NOT NULL DEFAULT '',
835 `push` int(11) NOT NULL DEFAULT 0,
836 `last_update` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
837 `secret` varchar(255) NOT NULL DEFAULT '',
839 ) DEFAULT CHARSET=utf8;
844 CREATE TABLE IF NOT EXISTS `queue` (
845 `id` int(11) NOT NULL auto_increment,
846 `cid` int(11) NOT NULL DEFAULT 0,
847 `network` varchar(32) NOT NULL DEFAULT '',
848 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
849 `last` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
850 `content` mediumtext NOT NULL,
851 `batch` tinyint(1) NOT NULL DEFAULT 0,
854 INDEX `created` (`created`),
855 INDEX `last` (`last`),
856 INDEX `network` (`network`),
857 INDEX `batch` (`batch`)
858 ) DEFAULT CHARSET=utf8;
863 CREATE TABLE IF NOT EXISTS `register` (
864 `id` int(11) unsigned NOT NULL auto_increment,
865 `hash` varchar(255) NOT NULL DEFAULT '',
866 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
867 `uid` int(11) unsigned NOT NULL DEFAULT 0,
868 `password` varchar(255) NOT NULL DEFAULT '',
869 `language` varchar(16) NOT NULL DEFAULT '',
871 ) DEFAULT CHARSET=utf8;
876 CREATE TABLE IF NOT EXISTS `search` (
877 `id` int(11) NOT NULL auto_increment,
878 `uid` int(11) NOT NULL DEFAULT 0,
879 `term` varchar(255) NOT NULL DEFAULT '',
882 INDEX `term` (`term`)
883 ) DEFAULT CHARSET=utf8;
888 CREATE TABLE IF NOT EXISTS `session` (
889 `id` bigint(20) unsigned NOT NULL auto_increment,
890 `sid` varchar(255) NOT NULL DEFAULT '',
891 `data` text NOT NULL,
892 `expire` int(10) unsigned NOT NULL DEFAULT 0,
895 INDEX `expire` (`expire`)
896 ) DEFAULT CHARSET=utf8;
901 CREATE TABLE IF NOT EXISTS `sign` (
902 `id` int(10) unsigned NOT NULL auto_increment,
903 `iid` int(10) unsigned NOT NULL DEFAULT 0,
904 `signed_text` mediumtext NOT NULL,
905 `signature` text NOT NULL,
906 `signer` varchar(255) NOT NULL DEFAULT '',
909 ) DEFAULT CHARSET=utf8;
914 CREATE TABLE IF NOT EXISTS `spam` (
915 `id` int(11) NOT NULL auto_increment,
916 `uid` int(11) NOT NULL DEFAULT 0,
917 `spam` int(11) NOT NULL DEFAULT 0,
918 `ham` int(11) NOT NULL DEFAULT 0,
919 `term` varchar(255) NOT NULL DEFAULT '',
920 `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
923 INDEX `spam` (`spam`),
925 INDEX `term` (`term`)
926 ) DEFAULT CHARSET=utf8;
931 CREATE TABLE IF NOT EXISTS `term` (
932 `tid` int(10) unsigned NOT NULL auto_increment,
933 `oid` int(10) unsigned NOT NULL DEFAULT 0,
934 `otype` tinyint(3) unsigned NOT NULL DEFAULT 0,
935 `type` tinyint(3) unsigned NOT NULL DEFAULT 0,
936 `term` varchar(255) NOT NULL DEFAULT '',
937 `url` varchar(255) NOT NULL DEFAULT '',
938 `guid` varchar(255) NOT NULL DEFAULT '',
939 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
940 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
941 `global` tinyint(1) NOT NULL DEFAULT 0,
942 `aid` int(10) unsigned NOT NULL DEFAULT 0,
943 `uid` int(10) unsigned NOT NULL DEFAULT 0,
945 INDEX `oid_otype_type_term` (`oid`,`otype`,`type`,`term`),
946 INDEX `uid_term_tid` (`uid`,`term`,`tid`),
947 INDEX `type_term` (`type`,`term`),
948 INDEX `uid_otype_type_term_global_created` (`uid`,`otype`,`type`,`term`,`global`,`created`),
949 INDEX `otype_type_term_tid` (`otype`,`type`,`term`,`tid`),
950 INDEX `guid` (`guid`)
951 ) DEFAULT CHARSET=utf8;
956 CREATE TABLE IF NOT EXISTS `thread` (
957 `iid` int(10) unsigned NOT NULL DEFAULT 0,
958 `uid` int(10) unsigned NOT NULL DEFAULT 0,
959 `contact-id` int(11) unsigned NOT NULL DEFAULT 0,
960 `gcontact-id` int(11) unsigned NOT NULL DEFAULT 0,
961 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
962 `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
963 `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
964 `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
965 `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
966 `wall` tinyint(1) NOT NULL DEFAULT 0,
967 `private` tinyint(1) NOT NULL DEFAULT 0,
968 `pubmail` tinyint(1) NOT NULL DEFAULT 0,
969 `moderated` tinyint(1) NOT NULL DEFAULT 0,
970 `visible` tinyint(1) NOT NULL DEFAULT 0,
971 `spam` tinyint(1) NOT NULL DEFAULT 0,
972 `starred` tinyint(1) NOT NULL DEFAULT 0,
973 `ignored` tinyint(1) NOT NULL DEFAULT 0,
974 `bookmark` tinyint(1) NOT NULL DEFAULT 0,
975 `unseen` tinyint(1) NOT NULL DEFAULT 1,
976 `deleted` tinyint(1) NOT NULL DEFAULT 0,
977 `origin` tinyint(1) NOT NULL DEFAULT 0,
978 `forum_mode` tinyint(1) NOT NULL DEFAULT 0,
979 `mention` tinyint(1) NOT NULL DEFAULT 0,
980 `network` varchar(32) NOT NULL DEFAULT '',
982 INDEX `created` (`created`),
983 INDEX `commented` (`commented`),
984 INDEX `uid_network_commented` (`uid`,`network`,`commented`),
985 INDEX `uid_network_created` (`uid`,`network`,`created`),
986 INDEX `uid_contactid_commented` (`uid`,`contact-id`,`commented`),
987 INDEX `uid_contactid_created` (`uid`,`contact-id`,`created`),
988 INDEX `uid_gcontactid_commented` (`uid`,`gcontact-id`,`commented`),
989 INDEX `uid_gcontactid_created` (`uid`,`gcontact-id`,`created`),
990 INDEX `wall_private_received` (`wall`,`private`,`received`),
991 INDEX `uid_created` (`uid`,`created`),
992 INDEX `uid_commented` (`uid`,`commented`)
993 ) DEFAULT CHARSET=utf8;
998 CREATE TABLE IF NOT EXISTS `tokens` (
999 `id` varchar(40) NOT NULL,
1000 `secret` text NOT NULL,
1001 `client_id` varchar(20) NOT NULL DEFAULT '',
1002 `expires` int(11) NOT NULL DEFAULT 0,
1003 `scope` varchar(200) NOT NULL DEFAULT '',
1004 `uid` int(11) NOT NULL DEFAULT 0,
1006 ) DEFAULT CHARSET=utf8;
1011 CREATE TABLE IF NOT EXISTS `user` (
1012 `uid` int(11) NOT NULL auto_increment,
1013 `guid` varchar(64) NOT NULL DEFAULT '',
1014 `username` varchar(255) NOT NULL DEFAULT '',
1015 `password` varchar(255) NOT NULL DEFAULT '',
1016 `nickname` varchar(255) NOT NULL DEFAULT '',
1017 `email` varchar(255) NOT NULL DEFAULT '',
1018 `openid` varchar(255) NOT NULL DEFAULT '',
1019 `timezone` varchar(128) NOT NULL DEFAULT '',
1020 `language` varchar(32) NOT NULL DEFAULT 'en',
1021 `register_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1022 `login_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1023 `default-location` varchar(255) NOT NULL DEFAULT '',
1024 `allow_location` tinyint(1) NOT NULL DEFAULT 0,
1025 `theme` varchar(255) NOT NULL DEFAULT '',
1026 `pubkey` text NOT NULL,
1027 `prvkey` text NOT NULL,
1028 `spubkey` text NOT NULL,
1029 `sprvkey` text NOT NULL,
1030 `verified` tinyint(1) unsigned NOT NULL DEFAULT 0,
1031 `blocked` tinyint(1) unsigned NOT NULL DEFAULT 0,
1032 `blockwall` tinyint(1) unsigned NOT NULL DEFAULT 0,
1033 `hidewall` tinyint(1) unsigned NOT NULL DEFAULT 0,
1034 `blocktags` tinyint(1) unsigned NOT NULL DEFAULT 0,
1035 `unkmail` tinyint(1) NOT NULL DEFAULT 0,
1036 `cntunkmail` int(11) NOT NULL DEFAULT 10,
1037 `notify-flags` int(11) unsigned NOT NULL DEFAULT 65535,
1038 `page-flags` int(11) unsigned NOT NULL DEFAULT 0,
1039 `prvnets` tinyint(1) NOT NULL DEFAULT 0,
1040 `pwdreset` varchar(255) NOT NULL DEFAULT '',
1041 `maxreq` int(11) NOT NULL DEFAULT 10,
1042 `expire` int(11) unsigned NOT NULL DEFAULT 0,
1043 `account_removed` tinyint(1) NOT NULL DEFAULT 0,
1044 `account_expired` tinyint(1) NOT NULL DEFAULT 0,
1045 `account_expires_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1046 `expire_notification_sent` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1047 `service_class` varchar(32) NOT NULL DEFAULT '',
1048 `def_gid` int(11) NOT NULL DEFAULT 0,
1049 `allow_cid` mediumtext NOT NULL,
1050 `allow_gid` mediumtext NOT NULL,
1051 `deny_cid` mediumtext NOT NULL,
1052 `deny_gid` mediumtext NOT NULL,
1053 `openidserver` text NOT NULL,
1055 INDEX `nickname` (`nickname`)
1056 ) DEFAULT CHARSET=utf8;
1061 CREATE TABLE IF NOT EXISTS `userd` (
1062 `id` int(11) NOT NULL auto_increment,
1063 `username` varchar(255) NOT NULL,
1065 INDEX `username` (`username`)
1066 ) DEFAULT CHARSET=utf8;
1069 -- TABLE workerqueue
1071 CREATE TABLE IF NOT EXISTS `workerqueue` (
1072 `id` int(11) NOT NULL auto_increment,
1073 `parameter` text NOT NULL,
1074 `priority` tinyint(3) unsigned NOT NULL DEFAULT 0,
1075 `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1076 `pid` int(11) NOT NULL DEFAULT 0,
1077 `executed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
1079 INDEX `created` (`created`)
1080 ) DEFAULT CHARSET=utf8;