]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
Switched to a vagrant box that works for Ubuntu Xenial
[friendica.git] / database.sql
index 03ebc5fe4a801092e3a5c64ad234d9f2e49cecb2..c5fd49ba011446974ed85da26e4714944be95931 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
--- Friendica 3.5-dev (Asparagus)
--- DB_UPDATE_VERSION 1200
+-- Friendica 3.5.1-dev (Asparagus)
+-- DB_UPDATE_VERSION 1205
 -- ------------------------------------------
 
 
@@ -58,7 +58,7 @@ CREATE TABLE IF NOT EXISTS `cache` (
        `v` text,
        `expire_mode` int(11) NOT NULL DEFAULT 0,
        `updated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-        PRIMARY KEY(`k`),
+        PRIMARY KEY(`k`(191)),
         INDEX `updated` (`updated`)
 ) DEFAULT CHARSET=utf8mb4;
 
@@ -97,7 +97,7 @@ CREATE TABLE IF NOT EXISTS `config` (
        `k` varchar(255) NOT NULL DEFAULT '',
        `v` text,
         PRIMARY KEY(`id`),
-        INDEX `cat_k` (`cat`(30),`k`(30))
+        UNIQUE INDEX `cat_k` (`cat`(30),`k`(30))
 ) DEFAULT CHARSET=utf8mb4;
 
 --
@@ -118,6 +118,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
        `about` text,
        `keywords` text,
        `gender` varchar(32) NOT NULL DEFAULT '',
+       `xmpp` varchar(255) NOT NULL DEFAULT '',
        `attag` varchar(255) NOT NULL DEFAULT '',
        `avatar` varchar(255) NOT NULL DEFAULT '',
        `photo` text,
@@ -157,6 +158,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
        `writable` tinyint(1) NOT NULL DEFAULT 0,
        `forum` tinyint(1) NOT NULL DEFAULT 0,
        `prv` tinyint(1) NOT NULL DEFAULT 0,
+       `contact-type` int(11) unsigned NOT NULL DEFAULT 0,
        `hidden` tinyint(1) NOT NULL DEFAULT 0,
        `archive` tinyint(1) NOT NULL DEFAULT 0,
        `pending` tinyint(1) NOT NULL DEFAULT 1,
@@ -326,6 +328,7 @@ CREATE TABLE IF NOT EXISTS `gcontact` (
        `gender` varchar(32) NOT NULL DEFAULT '',
        `birthday` varchar(32) NOT NULL DEFAULT '0000-00-00',
        `community` tinyint(1) NOT NULL DEFAULT 0,
+       `contact-type` tinyint(1) NOT NULL DEFAULT -1,
        `hide` tinyint(1) NOT NULL DEFAULT 0,
        `nsfw` tinyint(1) NOT NULL DEFAULT 0,
        `network` varchar(255) NOT NULL DEFAULT '',
@@ -652,6 +655,8 @@ CREATE TABLE IF NOT EXISTS `notify` (
        `seen` tinyint(1) NOT NULL DEFAULT 0,
        `verb` varchar(255) NOT NULL DEFAULT '',
        `otype` varchar(16) NOT NULL DEFAULT '',
+       `name_cache` tinytext,
+       `msg_name` mediumtext,
         PRIMARY KEY(`id`),
         INDEX `uid` (`uid`)
 ) DEFAULT CHARSET=utf8mb4;
@@ -677,7 +682,7 @@ CREATE TABLE IF NOT EXISTS `oembed` (
        `url` varchar(255) NOT NULL,
        `content` text,
        `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-        PRIMARY KEY(`url`),
+        PRIMARY KEY(`url`(191)),
         INDEX `created` (`created`)
 ) DEFAULT CHARSET=utf8mb4;
 
@@ -690,7 +695,7 @@ CREATE TABLE IF NOT EXISTS `parsed_url` (
        `oembed` tinyint(1) NOT NULL DEFAULT 0,
        `content` text,
        `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
-        PRIMARY KEY(`url`,`guessing`,`oembed`),
+        PRIMARY KEY(`url`(191),`guessing`,`oembed`),
         INDEX `created` (`created`)
 ) DEFAULT CHARSET=utf8mb4;
 
@@ -704,7 +709,7 @@ CREATE TABLE IF NOT EXISTS `pconfig` (
        `k` varchar(255) NOT NULL DEFAULT '',
        `v` mediumtext,
         PRIMARY KEY(`id`),
-        INDEX `uid_cat_k` (`uid`,`cat`(30),`k`(30))
+        UNIQUE INDEX `uid_cat_k` (`uid`,`cat`(30),`k`(30))
 ) DEFAULT CHARSET=utf8mb4;
 
 --
@@ -771,6 +776,17 @@ CREATE TABLE IF NOT EXISTS `poll_result` (
         INDEX `choice` (`choice`)
 ) DEFAULT CHARSET=utf8mb4;
 
+--
+-- TABLE process
+--
+CREATE TABLE IF NOT EXISTS `process` (
+       `pid` int(10) unsigned NOT NULL,
+       `command` varchar(32) NOT NULL DEFAULT '',
+       `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+        PRIMARY KEY(`pid`),
+        INDEX `command` (`command`)
+) DEFAULT CHARSET=utf8mb4;
+
 --
 -- TABLE profile
 --
@@ -812,6 +828,7 @@ CREATE TABLE IF NOT EXISTS `profile` (
        `education` text,
        `contact` text,
        `homepage` varchar(255) NOT NULL DEFAULT '',
+       `xmpp` varchar(255) NOT NULL DEFAULT '',
        `photo` varchar(255) NOT NULL DEFAULT '',
        `thumb` varchar(255) NOT NULL DEFAULT '',
        `publish` tinyint(1) NOT NULL DEFAULT 0,
@@ -1048,6 +1065,7 @@ CREATE TABLE IF NOT EXISTS `user` (
        `cntunkmail` int(11) NOT NULL DEFAULT 10,
        `notify-flags` int(11) unsigned NOT NULL DEFAULT 65535,
        `page-flags` int(11) unsigned NOT NULL DEFAULT 0,
+       `account-type` int(11) unsigned NOT NULL DEFAULT 0,
        `prvnets` tinyint(1) NOT NULL DEFAULT 0,
        `pwdreset` varchar(255) NOT NULL DEFAULT '',
        `maxreq` int(11) NOT NULL DEFAULT 10,