Better usage of text and mediumtext.
This commit is contained in:
parent
3af099298c
commit
29ef8d29ce
2 changed files with 63 additions and 62 deletions
|
@ -441,10 +441,10 @@ function db_definition($charset) {
|
|||
"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"),
|
||||
|
@ -465,7 +465,7 @@ function db_definition($charset) {
|
|||
$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"),
|
||||
),
|
||||
|
@ -506,7 +506,7 @@ function db_definition($charset) {
|
|||
"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"),
|
||||
|
@ -582,7 +582,7 @@ function db_definition($charset) {
|
|||
"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"),
|
||||
|
@ -602,12 +602,12 @@ function db_definition($charset) {
|
|||
"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"),
|
||||
|
@ -644,10 +644,10 @@ function db_definition($charset) {
|
|||
"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"),
|
||||
|
@ -1098,7 +1098,7 @@ function db_definition($charset) {
|
|||
$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(
|
||||
|
@ -1111,7 +1111,7 @@ function db_definition($charset) {
|
|||
"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(
|
||||
|
@ -1171,16 +1171,16 @@ function db_definition($charset) {
|
|||
"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"),
|
||||
|
@ -1493,10 +1493,10 @@ function db_definition($charset) {
|
|||
"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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue