mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
sQL: No "NOT NULL" on text fields.
This commit is contained in:
parent
014fc5dccb
commit
6df40b1161
3 changed files with 208 additions and 208 deletions
|
@ -372,10 +372,10 @@ function db_definition() {
|
|||
"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", "not null" => "1"),
|
||||
"allow_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_cid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"allow_cid" => array("type" => "mediumtext"),
|
||||
"allow_gid" => array("type" => "mediumtext"),
|
||||
"deny_cid" => array("type" => "mediumtext"),
|
||||
"deny_gid" => array("type" => "mediumtext"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -396,7 +396,7 @@ function db_definition() {
|
|||
$database["cache"] = array(
|
||||
"fields" => array(
|
||||
"k" => array("type" => "varchar(255)", "not null" => "1", "primary" => "1"),
|
||||
"v" => array("type" => "text", "not null" => "1"),
|
||||
"v" => array("type" => "text"),
|
||||
"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"),
|
||||
),
|
||||
|
@ -436,7 +436,7 @@ function db_definition() {
|
|||
"id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
|
||||
"cat" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"k" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"v" => array("type" => "text", "not null" => "1"),
|
||||
"v" => array("type" => "text"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -456,29 +456,29 @@ function db_definition() {
|
|||
"name" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"nick" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"location" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"about" => array("type" => "text", "not null" => "1"),
|
||||
"keywords" => array("type" => "text", "not null" => "1"),
|
||||
"about" => array("type" => "text"),
|
||||
"keywords" => array("type" => "text"),
|
||||
"gender" => array("type" => "varchar(32)", "not null" => "1", "default" => ""),
|
||||
"attag" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"avatar" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"photo" => array("type" => "text", "not null" => "1"),
|
||||
"thumb" => array("type" => "text", "not null" => "1"),
|
||||
"micro" => array("type" => "text", "not null" => "1"),
|
||||
"site-pubkey" => array("type" => "text", "not null" => "1"),
|
||||
"photo" => array("type" => "text"),
|
||||
"thumb" => array("type" => "text"),
|
||||
"micro" => array("type" => "text"),
|
||||
"site-pubkey" => array("type" => "text"),
|
||||
"issued-id" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"dfrn-id" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"url" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"nurl" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"addr" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"alias" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"pubkey" => array("type" => "text", "not null" => "1"),
|
||||
"prvkey" => array("type" => "text", "not null" => "1"),
|
||||
"pubkey" => array("type" => "text"),
|
||||
"prvkey" => array("type" => "text"),
|
||||
"batch" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"request" => array("type" => "text", "not null" => "1"),
|
||||
"notify" => array("type" => "text", "not null" => "1"),
|
||||
"poll" => array("type" => "text", "not null" => "1"),
|
||||
"confirm" => array("type" => "text", "not null" => "1"),
|
||||
"poco" => array("type" => "text", "not null" => "1"),
|
||||
"request" => array("type" => "text"),
|
||||
"notify" => array("type" => "text"),
|
||||
"poll" => array("type" => "text"),
|
||||
"confirm" => array("type" => "text"),
|
||||
"poco" => array("type" => "text"),
|
||||
"aes_allow" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"ret-aes" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"usehub" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
|
@ -502,15 +502,15 @@ function db_definition() {
|
|||
"archive" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"pending" => array("type" => "tinyint(1)", "not null" => "1", "default" => "1"),
|
||||
"rating" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"reason" => array("type" => "text", "not null" => "1"),
|
||||
"reason" => array("type" => "text"),
|
||||
"closeness" => array("type" => "tinyint(2)", "not null" => "1", "default" => "99"),
|
||||
"info" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"info" => array("type" => "mediumtext"),
|
||||
"profile-id" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
"bdyear" => array("type" => "varchar(4)", "not null" => "1", "default" => ""),
|
||||
"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", "not null" => "1"),
|
||||
"ffi_keyword_blacklist" => array("type" => "mediumtext"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -522,12 +522,12 @@ function db_definition() {
|
|||
"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", "not null" => "1"),
|
||||
"recips" => array("type" => "mediumtext"),
|
||||
"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", "not null" => "1"),
|
||||
"subject" => array("type" => "mediumtext"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -555,17 +555,17 @@ function db_definition() {
|
|||
"edited" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"start" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"finish" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"summary" => array("type" => "text", "not null" => "1"),
|
||||
"desc" => array("type" => "text", "not null" => "1"),
|
||||
"location" => array("type" => "text", "not null" => "1"),
|
||||
"summary" => array("type" => "text"),
|
||||
"desc" => array("type" => "text"),
|
||||
"location" => array("type" => "text"),
|
||||
"type" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"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", "not null" => "1"),
|
||||
"allow_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_cid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"allow_cid" => array("type" => "mediumtext"),
|
||||
"allow_gid" => array("type" => "mediumtext"),
|
||||
"deny_cid" => array("type" => "mediumtext"),
|
||||
"deny_gid" => array("type" => "mediumtext"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -589,7 +589,7 @@ function db_definition() {
|
|||
"priority" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"network" => array("type" => "varchar(32)", "not null" => "1", "default" => ""),
|
||||
"alias" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"pubkey" => array("type" => "text", "not null" => "1"),
|
||||
"pubkey" => array("type" => "text"),
|
||||
"updated" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
),
|
||||
"indexes" => array(
|
||||
|
@ -613,7 +613,7 @@ function db_definition() {
|
|||
"id" => array("type" => "int(11)", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
|
||||
"server" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"posturl" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"key" => array("type" => "text", "not null" => "1"),
|
||||
"key" => array("type" => "text"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -629,7 +629,7 @@ function db_definition() {
|
|||
"url" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"request" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"photo" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"note" => array("type" => "text", "not null" => "1"),
|
||||
"note" => array("type" => "text"),
|
||||
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
),
|
||||
"indexes" => array(
|
||||
|
@ -662,8 +662,8 @@ function db_definition() {
|
|||
"last_contact" => array("type" => "datetime", "default" => "0000-00-00 00:00:00"),
|
||||
"last_failure" => array("type" => "datetime", "default" => "0000-00-00 00:00:00"),
|
||||
"location" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"about" => array("type" => "text", "not null" => "1"),
|
||||
"keywords" => array("type" => "text", "not null" => "1"),
|
||||
"about" => array("type" => "text"),
|
||||
"keywords" => array("type" => "text"),
|
||||
"gender" => array("type" => "varchar(32)", "not null" => "1", "default" => ""),
|
||||
"birthday" => array("type" => "varchar(32)", "not null" => "1", "default" => "0000-00-00"),
|
||||
"community" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
|
@ -671,7 +671,7 @@ function db_definition() {
|
|||
"nsfw" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"network" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"addr" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"notify" => array("type" => "text", "not null" => "1"),
|
||||
"notify" => array("type" => "text"),
|
||||
"alias" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"generation" => array("type" => "tinyint(3)", "not null" => "1", "default" => "0"),
|
||||
"server_url" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
|
@ -733,7 +733,7 @@ function db_definition() {
|
|||
"nurl" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"version" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"site_name" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"info" => array("type" => "text", "not null" => "1"),
|
||||
"info" => array("type" => "text"),
|
||||
"register_policy" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"poco" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"noscrape" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
|
@ -770,7 +770,7 @@ function db_definition() {
|
|||
"contact-id" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
"knowyou" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"duplex" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"note" => array("type" => "text", "not null" => "1"),
|
||||
"note" => array("type" => "text"),
|
||||
"hash" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"datetime" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"blocked" => array("type" => "tinyint(1)", "not null" => "1", "default" => "1"),
|
||||
|
@ -809,27 +809,27 @@ function db_definition() {
|
|||
"author-link" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"author-avatar" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"title" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"body" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"body" => array("type" => "mediumtext"),
|
||||
"app" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"verb" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"object-type" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"object" => array("type" => "text", "not null" => "1"),
|
||||
"object" => array("type" => "text"),
|
||||
"target-type" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"target" => array("type" => "text", "not null" => "1"),
|
||||
"postopts" => array("type" => "text", "not null" => "1"),
|
||||
"target" => array("type" => "text"),
|
||||
"postopts" => array("type" => "text"),
|
||||
"plink" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"resource-id" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"event-id" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
"tag" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"attach" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"inform" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"file" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"tag" => array("type" => "mediumtext"),
|
||||
"attach" => array("type" => "mediumtext"),
|
||||
"inform" => array("type" => "mediumtext"),
|
||||
"file" => array("type" => "mediumtext"),
|
||||
"location" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"coord" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"allow_cid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"allow_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_cid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"allow_cid" => array("type" => "mediumtext"),
|
||||
"allow_gid" => array("type" => "mediumtext"),
|
||||
"deny_cid" => array("type" => "mediumtext"),
|
||||
"deny_gid" => array("type" => "mediumtext"),
|
||||
"private" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"pubmail" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"moderated" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
|
@ -845,7 +845,7 @@ function db_definition() {
|
|||
"mention" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"network" => array("type" => "varchar(32)", "not null" => "1", "default" => ""),
|
||||
"rendered-hash" => array("type" => "varchar(32)", "not null" => "1", "default" => ""),
|
||||
"rendered-html" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"rendered-html" => array("type" => "mediumtext"),
|
||||
"global" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
),
|
||||
"indexes" => array(
|
||||
|
@ -926,7 +926,7 @@ function db_definition() {
|
|||
"contact-id" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"convid" => array("type" => "int(11) unsigned", "not null" => "1", "default" => "0"),
|
||||
"title" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"body" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"body" => array("type" => "mediumtext"),
|
||||
"seen" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"reply" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"replied" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
|
@ -954,7 +954,7 @@ function db_definition() {
|
|||
"ssltype" => array("type" => "varchar(16)", "not null" => "1", "default" => ""),
|
||||
"mailbox" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"user" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"pass" => array("type" => "text", "not null" => "1"),
|
||||
"pass" => array("type" => "text"),
|
||||
"reply_to" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"action" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
"movetofolder" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
|
@ -985,7 +985,7 @@ function db_definition() {
|
|||
"url" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"photo" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"date" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"msg" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"msg" => array("type" => "mediumtext"),
|
||||
"uid" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
"link" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"iid" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
|
@ -1016,7 +1016,7 @@ function db_definition() {
|
|||
$database["oembed"] = array(
|
||||
"fields" => array(
|
||||
"url" => array("type" => "varchar(255)", "not null" => "1", "primary" => "1"),
|
||||
"content" => array("type" => "text", "not null" => "1"),
|
||||
"content" => array("type" => "text"),
|
||||
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
),
|
||||
"indexes" => array(
|
||||
|
@ -1029,7 +1029,7 @@ function db_definition() {
|
|||
"url" => array("type" => "varchar(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", "not null" => "1"),
|
||||
"content" => array("type" => "text"),
|
||||
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
),
|
||||
"indexes" => array(
|
||||
|
@ -1043,7 +1043,7 @@ function db_definition() {
|
|||
"uid" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
"cat" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"k" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"v" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"v" => array("type" => "mediumtext"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -1060,7 +1060,7 @@ function db_definition() {
|
|||
"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"),
|
||||
"title" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"desc" => array("type" => "text", "not null" => "1"),
|
||||
"desc" => array("type" => "text"),
|
||||
"album" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"filename" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"type" => array("type" => "varchar(128)", "not null" => "1", "default" => "image/jpeg"),
|
||||
|
@ -1070,10 +1070,10 @@ function db_definition() {
|
|||
"data" => array("type" => "mediumblob", "not null" => "1"),
|
||||
"scale" => array("type" => "tinyint(3)", "not null" => "1", "default" => "0"),
|
||||
"profile" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"allow_cid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"allow_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_cid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"allow_cid" => array("type" => "mediumtext"),
|
||||
"allow_gid" => array("type" => "mediumtext"),
|
||||
"deny_cid" => array("type" => "mediumtext"),
|
||||
"deny_gid" => array("type" => "mediumtext"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -1086,16 +1086,16 @@ function db_definition() {
|
|||
"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", "not null" => "1"),
|
||||
"q1" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"q2" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"q3" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"q4" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"q5" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"q6" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"q7" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"q8" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"q9" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"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"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("id"),
|
||||
|
@ -1132,26 +1132,26 @@ function db_definition() {
|
|||
"hometown" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"gender" => array("type" => "varchar(32)", "not null" => "1", "default" => ""),
|
||||
"marital" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"with" => array("type" => "text", "not null" => "1"),
|
||||
"with" => array("type" => "text"),
|
||||
"howlong" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"sexual" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"politic" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"religion" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"pub_keywords" => array("type" => "text", "not null" => "1"),
|
||||
"prv_keywords" => array("type" => "text", "not null" => "1"),
|
||||
"likes" => array("type" => "text", "not null" => "1"),
|
||||
"dislikes" => array("type" => "text", "not null" => "1"),
|
||||
"about" => array("type" => "text", "not null" => "1"),
|
||||
"pub_keywords" => array("type" => "text"),
|
||||
"prv_keywords" => array("type" => "text"),
|
||||
"likes" => array("type" => "text"),
|
||||
"dislikes" => array("type" => "text"),
|
||||
"about" => array("type" => "text"),
|
||||
"summary" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"music" => array("type" => "text", "not null" => "1"),
|
||||
"book" => array("type" => "text", "not null" => "1"),
|
||||
"tv" => array("type" => "text", "not null" => "1"),
|
||||
"film" => array("type" => "text", "not null" => "1"),
|
||||
"interest" => array("type" => "text", "not null" => "1"),
|
||||
"romance" => array("type" => "text", "not null" => "1"),
|
||||
"work" => array("type" => "text", "not null" => "1"),
|
||||
"education" => array("type" => "text", "not null" => "1"),
|
||||
"contact" => array("type" => "text", "not null" => "1"),
|
||||
"music" => array("type" => "text"),
|
||||
"book" => array("type" => "text"),
|
||||
"tv" => array("type" => "text"),
|
||||
"film" => array("type" => "text"),
|
||||
"interest" => array("type" => "text"),
|
||||
"romance" => array("type" => "text"),
|
||||
"work" => array("type" => "text"),
|
||||
"education" => array("type" => "text"),
|
||||
"contact" => array("type" => "text"),
|
||||
"homepage" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"photo" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"thumb" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
|
@ -1198,7 +1198,7 @@ function db_definition() {
|
|||
"network" => array("type" => "varchar(32)", "not null" => "1", "default" => ""),
|
||||
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"last" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"content" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"content" => array("type" => "mediumtext"),
|
||||
"batch" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
),
|
||||
"indexes" => array(
|
||||
|
@ -1239,7 +1239,7 @@ function db_definition() {
|
|||
"fields" => array(
|
||||
"id" => array("type" => "bigint(20) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
|
||||
"sid" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"data" => array("type" => "text", "not null" => "1"),
|
||||
"data" => array("type" => "text"),
|
||||
"expire" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0"),
|
||||
),
|
||||
"indexes" => array(
|
||||
|
@ -1252,8 +1252,8 @@ function db_definition() {
|
|||
"fields" => array(
|
||||
"id" => array("type" => "int(10) unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
|
||||
"iid" => array("type" => "int(10) unsigned", "not null" => "1", "default" => "0"),
|
||||
"signed_text" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"signature" => array("type" => "text", "not null" => "1"),
|
||||
"signed_text" => array("type" => "mediumtext"),
|
||||
"signature" => array("type" => "text"),
|
||||
"signer" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
),
|
||||
"indexes" => array(
|
||||
|
@ -1350,7 +1350,7 @@ function db_definition() {
|
|||
$database["tokens"] = array(
|
||||
"fields" => array(
|
||||
"id" => array("type" => "varchar(40)", "not null" => "1", "primary" => "1"),
|
||||
"secret" => array("type" => "text", "not null" => "1"),
|
||||
"secret" => array("type" => "text"),
|
||||
"client_id" => array("type" => "varchar(20)", "not null" => "1", "default" => ""),
|
||||
"expires" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
"scope" => array("type" => "varchar(200)", "not null" => "1", "default" => ""),
|
||||
|
@ -1376,10 +1376,10 @@ function db_definition() {
|
|||
"default-location" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"allow_location" => array("type" => "tinyint(1)", "not null" => "1", "default" => "0"),
|
||||
"theme" => array("type" => "varchar(255)", "not null" => "1", "default" => ""),
|
||||
"pubkey" => array("type" => "text", "not null" => "1"),
|
||||
"prvkey" => array("type" => "text", "not null" => "1"),
|
||||
"spubkey" => array("type" => "text", "not null" => "1"),
|
||||
"sprvkey" => array("type" => "text", "not null" => "1"),
|
||||
"pubkey" => array("type" => "text"),
|
||||
"prvkey" => array("type" => "text"),
|
||||
"spubkey" => array("type" => "text"),
|
||||
"sprvkey" => array("type" => "text"),
|
||||
"verified" => array("type" => "tinyint(1) unsigned", "not null" => "1", "default" => "0"),
|
||||
"blocked" => array("type" => "tinyint(1) unsigned", "not null" => "1", "default" => "0"),
|
||||
"blockwall" => array("type" => "tinyint(1) unsigned", "not null" => "1", "default" => "0"),
|
||||
|
@ -1399,11 +1399,11 @@ function db_definition() {
|
|||
"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", "not null" => "1"),
|
||||
"allow_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_cid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"deny_gid" => array("type" => "mediumtext", "not null" => "1"),
|
||||
"openidserver" => array("type" => "text", "not null" => "1"),
|
||||
"allow_cid" => array("type" => "mediumtext"),
|
||||
"allow_gid" => array("type" => "mediumtext"),
|
||||
"deny_cid" => array("type" => "mediumtext"),
|
||||
"deny_gid" => array("type" => "mediumtext"),
|
||||
"openidserver" => array("type" => "text"),
|
||||
),
|
||||
"indexes" => array(
|
||||
"PRIMARY" => array("uid"),
|
||||
|
@ -1423,7 +1423,7 @@ function db_definition() {
|
|||
$database["workerqueue"] = array(
|
||||
"fields" => array(
|
||||
"id" => array("type" => "int(11)", "not null" => "1", "extra" => "auto_increment", "primary" => "1"),
|
||||
"parameter" => array("type" => "text", "not null" => "1"),
|
||||
"parameter" => array("type" => "text"),
|
||||
"priority" => array("type" => "tinyint(3) unsigned", "not null" => "1", "default" => "0"),
|
||||
"created" => array("type" => "datetime", "not null" => "1", "default" => "0000-00-00 00:00:00"),
|
||||
"pid" => array("type" => "int(11)", "not null" => "1", "default" => "0"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue