- "fields" => array(
- "id" => array("type" => "int", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "relation" => array("thread" => "iid")),
- "guid" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "uri" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "uid" => array("type" => "mediumint", "not null" => "1", "default" => "0", "relation" => array("user" => "uid"), "comment" => "User id"),
- "contact-id" => array("type" => "int", "not null" => "1", "default" => "0", "relation" => array("contact" => "id"), "comment" => ""),
- "gcontact-id" => array("type" => "int", "not null" => "1", "default" => "0", "relation" => array("gcontact" => "id"), "comment" => ""),
- "type" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "wall" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "gravity" => array("type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""),
- "parent" => array("type" => "int", "not null" => "1", "default" => "0", "relation" => array("item" => "id"), "comment" => ""),
- "parent-uri" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "extid" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "thr-parent" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "created" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""),
- "edited" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""),
- "commented" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""),
- "received" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""),
- "changed" => array("type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""),
- "owner-id" => array("type" => "int", "not null" => "1", "default" => "0", "relation" => array("contact" => "id"), "comment" => ""),
- "owner-name" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "owner-link" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "owner-avatar" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "author-id" => array("type" => "int", "not null" => "1", "default" => "0", "relation" => array("contact" => "id"), "comment" => ""),
- "author-name" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "author-link" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "author-avatar" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "title" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "body" => array("type" => "mediumtext", "comment" => ""),
- "app" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "verb" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "object-type" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "object" => array("type" => "text", "comment" => ""),
- "target-type" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "target" => array("type" => "text", "comment" => ""),
- "postopts" => array("type" => "text", "comment" => ""),
- "plink" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "resource-id" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "event-id" => array("type" => "int", "not null" => "1", "default" => "0", "relation" => array("event" => "id"), "comment" => ""),
- "tag" => array("type" => "mediumtext", "comment" => ""),
- "attach" => array("type" => "mediumtext", "comment" => ""),
- "inform" => array("type" => "mediumtext", "comment" => ""),
- "file" => array("type" => "mediumtext", "comment" => ""),
- "location" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "coord" => array("type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""),
- "allow_cid" => array("type" => "mediumtext", "comment" => ""),
- "allow_gid" => array("type" => "mediumtext", "comment" => ""),
- "deny_cid" => array("type" => "mediumtext", "comment" => ""),
- "deny_gid" => array("type" => "mediumtext", "comment" => ""),
- "private" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "pubmail" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "moderated" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "visible" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "spam" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "starred" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "bookmark" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "unseen" => array("type" => "boolean", "not null" => "1", "default" => "1", "comment" => ""),
- "deleted" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "origin" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "forum_mode" => array("type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""),
- "last-child" => array("type" => "boolean", "not null" => "1", "default" => "1", "comment" => ""),
- "mention" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- "network" => array("type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => ""),
- "rendered-hash" => array("type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => ""),
- "rendered-html" => array("type" => "mediumtext", "comment" => ""),
- "global" => array("type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""),
- ),
- "indexes" => array(
- "PRIMARY" => array("id"),
- "guid" => array("guid(191)"),
- "uri" => array("uri(191)"),
- "parent" => array("parent"),
- "parent-uri" => array("parent-uri(191)"),
- "extid" => array("extid(191)"),
- "uid_id" => array("uid","id"),
- "uid_contactid_id" => array("uid","contact-id","id"),
- "uid_created" => array("uid","created"),
- "uid_unseen_contactid" => array("uid","unseen","contact-id"),
- "uid_network_received" => array("uid","network(4)","received"),
- "uid_network_commented" => array("uid","network(4)","commented"),
- "uid_thrparent" => array("uid","thr-parent(190)"),
- "uid_parenturi" => array("uid","parent-uri(190)"),
- "uid_contactid_created" => array("uid","contact-id","created"),
- "authorid_created" => array("author-id","created"),
- "ownerid" => array("owner-id"),
- "uid_uri" => array("uid", "uri(190)"),
- "resource-id" => array("resource-id(191)"),
- "contactid_allowcid_allowpid_denycid_denygid" => array("contact-id","allow_cid(10)","allow_gid(10)","deny_cid(10)","deny_gid(10)"), //
- "uid_type_changed" => array("uid","type(190)","changed"),
- "contactid_verb" => array("contact-id","verb(190)"),
- "deleted_changed" => array("deleted","changed"),
- "uid_wall_changed" => array("uid","wall","changed"),
- "uid_eventid" => array("uid","event-id"),
- "uid_authorlink" => array("uid","author-link(190)"),
- "uid_ownerlink" => array("uid","owner-link(190)"),
- )
- );
- $database["locks"] = array(
+ "fields" => [
+ "id" => ["type" => "int", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "relation" => ["thread" => "iid"]],
+ "guid" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "uri" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "uid" => ["type" => "mediumint", "not null" => "1", "default" => "0", "relation" => ["user" => "uid"], "comment" => "User id"],
+ "contact-id" => ["type" => "int", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => ""],
+ "gcontact-id" => ["type" => "int", "not null" => "1", "default" => "0", "relation" => ["gcontact" => "id"], "comment" => ""],
+ "type" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "wall" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "gravity" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""],
+ "parent" => ["type" => "int", "not null" => "1", "default" => "0", "relation" => ["item" => "id"], "comment" => ""],
+ "parent-uri" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "extid" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "thr-parent" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "created" => ["type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""],
+ "edited" => ["type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""],
+ "commented" => ["type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""],
+ "received" => ["type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""],
+ "changed" => ["type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""],
+ "owner-id" => ["type" => "int", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => ""],
+ "owner-name" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "owner-link" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "owner-avatar" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "author-id" => ["type" => "int", "not null" => "1", "default" => "0", "relation" => ["contact" => "id"], "comment" => ""],
+ "author-name" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "author-link" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "author-avatar" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "title" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "body" => ["type" => "mediumtext", "comment" => ""],
+ "app" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "verb" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "object-type" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "object" => ["type" => "text", "comment" => ""],
+ "target-type" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "target" => ["type" => "text", "comment" => ""],
+ "postopts" => ["type" => "text", "comment" => ""],
+ "plink" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "resource-id" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "event-id" => ["type" => "int", "not null" => "1", "default" => "0", "relation" => ["event" => "id"], "comment" => ""],
+ "tag" => ["type" => "mediumtext", "comment" => ""],
+ "attach" => ["type" => "mediumtext", "comment" => ""],
+ "inform" => ["type" => "mediumtext", "comment" => ""],
+ "file" => ["type" => "mediumtext", "comment" => ""],
+ "location" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "coord" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
+ "allow_cid" => ["type" => "mediumtext", "comment" => ""],
+ "allow_gid" => ["type" => "mediumtext", "comment" => ""],
+ "deny_cid" => ["type" => "mediumtext", "comment" => ""],
+ "deny_gid" => ["type" => "mediumtext", "comment" => ""],
+ "private" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "pubmail" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "moderated" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "visible" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "spam" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "starred" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "bookmark" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "unseen" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => ""],
+ "deleted" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "origin" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "forum_mode" => ["type" => "tinyint", "not null" => "1", "default" => "0", "comment" => ""],
+ "last-child" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => ""],
+ "mention" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ "network" => ["type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => ""],
+ "rendered-hash" => ["type" => "varchar(32)", "not null" => "1", "default" => "", "comment" => ""],
+ "rendered-html" => ["type" => "mediumtext", "comment" => ""],
+ "global" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => ""],
+ ],
+ "indexes" => [
+ "PRIMARY" => ["id"],
+ "guid" => ["guid(191)"],
+ "uri" => ["uri(191)"],
+ "parent" => ["parent"],
+ "parent-uri" => ["parent-uri(191)"],
+ "extid" => ["extid(191)"],
+ "uid_id" => ["uid","id"],
+ "uid_contactid_id" => ["uid","contact-id","id"],
+ "uid_created" => ["uid","created"],
+ "uid_unseen_contactid" => ["uid","unseen","contact-id"],
+ "uid_network_received" => ["uid","network(4)","received"],
+ "uid_network_commented" => ["uid","network(4)","commented"],
+ "uid_thrparent" => ["uid","thr-parent(190)"],
+ "uid_parenturi" => ["uid","parent-uri(190)"],
+ "uid_contactid_created" => ["uid","contact-id","created"],
+ "authorid_created" => ["author-id","created"],
+ "ownerid" => ["owner-id"],
+ "uid_uri" => ["uid", "uri(190)"],
+ "resource-id" => ["resource-id(191)"],
+ "contactid_allowcid_allowpid_denycid_denygid" => ["contact-id","allow_cid(10)","allow_gid(10)","deny_cid(10)","deny_gid(10)"], //
+ "uid_type_changed" => ["uid","type(190)","changed"],
+ "contactid_verb" => ["contact-id","verb(190)"],
+ "deleted_changed" => ["deleted","changed"],
+ "uid_wall_changed" => ["uid","wall","changed"],
+ "uid_eventid" => ["uid","event-id"],
+ "uid_authorlink" => ["uid","author-link(190)"],
+ "uid_ownerlink" => ["uid","owner-link(190)"],
+ ]
+ ];
+ $database["locks"] = [