]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
Allow set empty string storge class for legacy
[friendica.git] / database.sql
index 5ba700bd87d9717716bef0acf5eb8a93eeed06cc..b9e70097eec314d2dae4a47748dfe8bc8c8c1174 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 2019.06-dev (Dalmatian Bellflower)
--- DB_UPDATE_VERSION 1308
+-- DB_UPDATE_VERSION 1310
 -- ------------------------------------------
 
 
@@ -138,6 +138,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
        `id` int unsigned NOT NULL auto_increment COMMENT 'sequential ID',
        `uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'Owner User id',
        `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
+       `updated` datetime DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of last contact update',
        `self` boolean NOT NULL DEFAULT '0' COMMENT '1 if the contact is the user him/her self',
        `remote_self` boolean NOT NULL DEFAULT '0' COMMENT '',
        `rel` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'The kind of the relation between the user and the contact',
@@ -145,7 +146,7 @@ CREATE TABLE IF NOT EXISTS `contact` (
        `network` char(4) NOT NULL DEFAULT '' COMMENT 'Network protocol of the contact',
        `name` varchar(255) NOT NULL DEFAULT '' COMMENT 'Name that this contact is known by',
        `nick` varchar(255) NOT NULL DEFAULT '' COMMENT 'Nick- and user name of the contact',
-       `location` varchar(255) NOT NULL DEFAULT '' COMMENT '',
+       `location` varchar(255) DEFAULT '' COMMENT '',
        `about` text COMMENT '',
        `keywords` text COMMENT 'public keywords (interests) of the contact',
        `gender` varchar(32) NOT NULL DEFAULT '' COMMENT '',
@@ -1027,25 +1028,6 @@ CREATE TABLE IF NOT EXISTS `push_subscriber` (
         INDEX `next_try` (`next_try`)
 ) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Used for OStatus: Contains feed subscribers';
 
---
--- TABLE queue
---
-CREATE TABLE IF NOT EXISTS `queue` (
-       `id` int unsigned NOT NULL auto_increment COMMENT 'sequential ID',
-       `cid` int unsigned NOT NULL DEFAULT 0 COMMENT 'Message receiver',
-       `network` char(4) NOT NULL DEFAULT '' COMMENT 'Receiver\'s network',
-       `guid` varchar(255) NOT NULL DEFAULT '' COMMENT 'Unique GUID of the message',
-       `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date, when the message was created',
-       `last` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Date of last trial',
-       `next` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT 'Next retrial date',
-       `retrial` tinyint NOT NULL DEFAULT 0 COMMENT 'Retrial counter',
-       `content` mediumtext COMMENT '',
-       `batch` boolean NOT NULL DEFAULT '0' COMMENT '',
-        PRIMARY KEY(`id`),
-        INDEX `last` (`last`),
-        INDEX `next` (`next`)
-) DEFAULT COLLATE utf8mb4_general_ci COMMENT='Queue for messages that couldn\'t be delivered';
-
 --
 -- TABLE register
 --