`data` longblob NOT NULL,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `allow_cid` mediumtext,
- `allow_gid` mediumtext,
- `deny_cid` mediumtext,
- `deny_gid` mediumtext,
+ `allow_cid` text,
+ `allow_gid` text,
+ `deny_cid` text,
+ `deny_gid` text,
PRIMARY KEY(`id`)
) DEFAULT CHARSET=utf8mb4;
--
CREATE TABLE IF NOT EXISTS `cache` (
`k` varbinary(255) NOT NULL,
- `v` text,
+ `v` mediumtext,
`expire_mode` int(11) NOT NULL DEFAULT 0,
`updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY(`k`),
`id` int(10) unsigned NOT NULL auto_increment,
`cat` varbinary(255) NOT NULL DEFAULT '',
`k` varbinary(255) NOT NULL DEFAULT '',
- `v` text,
+ `v` mediumtext,
PRIMARY KEY(`id`),
UNIQUE INDEX `cat_k` (`cat`,`k`)
) DEFAULT CHARSET=utf8mb4;
`bd` date NOT NULL DEFAULT '0000-00-00',
`notify_new_posts` tinyint(1) NOT NULL DEFAULT 0,
`fetch_further_information` tinyint(1) NOT NULL DEFAULT 0,
- `ffi_keyword_blacklist` mediumtext,
+ `ffi_keyword_blacklist` text,
PRIMARY KEY(`id`),
INDEX `uid_name` (`uid`,`name`),
- INDEX `uid_self` (`uid`,`self`),
+ INDEX `self_uid` (`self`,`uid`),
INDEX `alias_uid` (`alias`(32),`uid`),
- INDEX `uid_pending` (`uid`,`pending`),
- INDEX `uid_blocked` (`uid`,`blocked`),
+ INDEX `pending_uid` (`pending`,`uid`),
+ INDEX `blocked_uid` (`blocked`,`uid`),
INDEX `uid_rel_network_poll` (`uid`,`rel`,`network`,`poll`(64),`archive`),
INDEX `uid_network_batch` (`uid`,`network`,`batch`(64)),
INDEX `addr_uid` (`addr`(32),`uid`),
CREATE TABLE IF NOT EXISTS `conv` (
`id` int(10) unsigned NOT NULL auto_increment,
`guid` varchar(64) NOT NULL DEFAULT '',
- `recips` mediumtext,
+ `recips` text,
`uid` int(11) NOT NULL DEFAULT 0,
`creator` varchar(255) NOT NULL DEFAULT '',
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
- `subject` mediumtext,
+ `subject` text,
PRIMARY KEY(`id`),
INDEX `uid` (`uid`)
) DEFAULT CHARSET=utf8mb4;
`nofinish` tinyint(1) NOT NULL DEFAULT 0,
`adjust` tinyint(1) NOT NULL DEFAULT 1,
`ignore` tinyint(1) unsigned NOT NULL DEFAULT 0,
- `allow_cid` mediumtext,
- `allow_gid` mediumtext,
- `deny_cid` mediumtext,
- `deny_gid` mediumtext,
+ `allow_cid` text,
+ `allow_gid` text,
+ `deny_cid` text,
+ `deny_gid` text,
PRIMARY KEY(`id`),
INDEX `uid_start` (`uid`,`start`)
) DEFAULT CHARSET=utf8mb4;
`gid` int(10) unsigned NOT NULL DEFAULT 0,
`contact-id` int(10) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY(`id`),
- INDEX `cid_contactid` (`cid`,`contact-id`),
+ INDEX `gid_contactid` (`gid`,`contact-id`),
INDEX `uid_contactid` (`uid`,`contact-id`),
UNIQUE INDEX `uid_gid_contactid` (`uid`,`gid`,`contact-id`)
) DEFAULT CHARSET=utf8mb4;
--
CREATE TABLE IF NOT EXISTS `oembed` (
`url` varbinary(255) NOT NULL,
- `content` text,
+ `content` mediumtext,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY(`url`),
INDEX `created` (`created`)
`url` varbinary(255) NOT NULL,
`guessing` tinyint(1) NOT NULL DEFAULT 0,
`oembed` tinyint(1) NOT NULL DEFAULT 0,
- `content` text,
+ `content` mediumtext,
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY(`url`,`guessing`,`oembed`),
INDEX `created` (`created`)
INDEX `uid_contactid` (`uid`,`contact-id`),
INDEX `uid_profile` (`uid`,`profile`),
INDEX `uid_album_created` (`uid`,`album`(32),`created`),
+ INDEX `uid_album_scale_created` (`uid`,`album`(32),`scale`,`created`),
INDEX `uid_album_resource-id_created` (`uid`,`album`(32),`resource-id`(64),`created`),
INDEX `resource-id` (`resource-id`(64))
) DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS `poll` (
`id` int(11) NOT NULL auto_increment,
`uid` int(11) NOT NULL DEFAULT 0,
- `q0` mediumtext,
- `q1` mediumtext,
- `q2` mediumtext,
- `q3` mediumtext,
- `q4` mediumtext,
- `q5` mediumtext,
- `q6` mediumtext,
- `q7` mediumtext,
- `q8` mediumtext,
- `q9` mediumtext,
+ `q0` text,
+ `q1` text,
+ `q2` text,
+ `q3` text,
+ `q4` text,
+ `q5` text,
+ `q6` text,
+ `q7` text,
+ `q8` text,
+ `q9` text,
PRIMARY KEY(`id`),
INDEX `uid` (`uid`)
) DEFAULT CHARSET=utf8mb4;
`expire_notification_sent` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`service_class` varchar(32) NOT NULL DEFAULT '',
`def_gid` int(11) NOT NULL DEFAULT 0,
- `allow_cid` mediumtext,
- `allow_gid` mediumtext,
- `deny_cid` mediumtext,
- `deny_gid` mediumtext,
+ `allow_cid` text,
+ `allow_gid` text,
+ `deny_cid` text,
+ `deny_gid` text,
`openidserver` text,
PRIMARY KEY(`uid`),
INDEX `nickname` (`nickname`(32))
"data" => array("type" => "longblob", "not null" => "1"),
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
"edited" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
- "allow_cid" => array("type" => "mediumtext"),
- "allow_gid" => array("type" => "mediumtext"),
- "deny_cid" => array("type" => "mediumtext"),
- "deny_gid" => array("type" => "mediumtext"),
+ "allow_cid" => array("type" => "text"),
+ "allow_gid" => array("type" => "text"),
+ "deny_cid" => array("type" => "text"),
+ "deny_gid" => array("type" => "text"),
),
"indexes" => array(
"PRIMARY" => array("id"),
$database["cache"] = array(
"fields" => array(
"k" => array("type" => "varbinary(255)", "not null" => "1", "primary" => "1"),
- "v" => array("type" => "text"),
+ "v" => array("type" => "mediumtext"),
"expire_mode" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
"updated" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
),
"id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
"cat" => array("type" => "varbinary(255)", "not null" => "1", "default" => ""),
"k" => array("type" => "varbinary(255)", "not null" => "1", "default" => ""),
- "v" => array("type" => "text"),
+ "v" => array("type" => "mediumtext"),
),
"indexes" => array(
"PRIMARY" => array("id"),
"bd" => array("type" => "date", "not null" => "1", "default" => "0000-00-00"),
"notify_new_posts" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
"fetch_further_information" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
- "ffi_keyword_blacklist" => array("type" => "mediumtext"),
+ "ffi_keyword_blacklist" => array("type" => "text"),
),
"indexes" => array(
"PRIMARY" => array("id"),
"fields" => array(
"id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
"guid" => array("type" => "varchar(64)", "not null" => "1", "default" => ""),
- "recips" => array("type" => "mediumtext"),
+ "recips" => array("type" => "text"),
"uid" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
"creator" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
"updated" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
- "subject" => array("type" => "mediumtext"),
+ "subject" => array("type" => "text"),
),
"indexes" => array(
"PRIMARY" => array("id"),
"nofinish" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
"adjust" => array("type" => "tinyint(1)", "not null" => "1", "default" => "1"),
"ignore" => array("type" => "tinyint(1) unsigned", "not null" => "1", "default" => "0"),
- "allow_cid" => array("type" => "mediumtext"),
- "allow_gid" => array("type" => "mediumtext"),
- "deny_cid" => array("type" => "mediumtext"),
- "deny_gid" => array("type" => "mediumtext"),
+ "allow_cid" => array("type" => "text"),
+ "allow_gid" => array("type" => "text"),
+ "deny_cid" => array("type" => "text"),
+ "deny_gid" => array("type" => "text"),
),
"indexes" => array(
"PRIMARY" => array("id"),
$database["oembed"] = array(
"fields" => array(
"url" => array("type" => "varbinary(255)", "not null" => "1", "primary" => "1"),
- "content" => array("type" => "text"),
+ "content" => array("type" => "mediumtext"),
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
),
"indexes" => array(
"url" => array("type" => "varbinary(255)", "not null" => "1", "primary" => "1"),
"guessing" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0", "primary" => "1"),
"oembed" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0", "primary" => "1"),
- "content" => array("type" => "text"),
+ "content" => array("type" => "mediumtext"),
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
),
"indexes" => array(
"fields" => array(
"id" => array("type" => "int(11)", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
"uid" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
- "q0" => array("type" => "mediumtext"),
- "q1" => array("type" => "mediumtext"),
- "q2" => array("type" => "mediumtext"),
- "q3" => array("type" => "mediumtext"),
- "q4" => array("type" => "mediumtext"),
- "q5" => array("type" => "mediumtext"),
- "q6" => array("type" => "mediumtext"),
- "q7" => array("type" => "mediumtext"),
- "q8" => array("type" => "mediumtext"),
- "q9" => array("type" => "mediumtext"),
+ "q0" => array("type" => "text"),
+ "q1" => array("type" => "text"),
+ "q2" => array("type" => "text"),
+ "q3" => array("type" => "text"),
+ "q4" => array("type" => "text"),
+ "q5" => array("type" => "text"),
+ "q6" => array("type" => "text"),
+ "q7" => array("type" => "text"),
+ "q8" => array("type" => "text"),
+ "q9" => array("type" => "text"),
),
"indexes" => array(
"PRIMARY" => array("id"),
"expire_notification_sent" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
"service_class" => array("type" => "varchar(32)", "not null" => "1", "default" => ""),
"def_gid" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
- "allow_cid" => array("type" => "mediumtext"),
- "allow_gid" => array("type" => "mediumtext"),
- "deny_cid" => array("type" => "mediumtext"),
- "deny_gid" => array("type" => "mediumtext"),
+ "allow_cid" => array("type" => "text"),
+ "allow_gid" => array("type" => "text"),
+ "deny_cid" => array("type" => "text"),
+ "deny_gid" => array("type" => "text"),
"openidserver" => array("type" => "text"),
),
"indexes" => array(