]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
New fields "author-id" and "owner-id" in the item table
[friendica.git] / database.sql
index 07fb65b96d9ebf59e68fa119e926d062c6605b13..275982d8446346b1b27ee9485862585f37cb4452 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 3.5-dev (Asparagus)
--- DB_UPDATE_VERSION 1195
+-- DB_UPDATE_VERSION 1197
 -- ------------------------------------------
 
 
@@ -458,9 +458,11 @@ CREATE TABLE IF NOT EXISTS `item` (
        `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
        `received` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
        `changed` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
+       `owner-id` int(11) NOT NULL DEFAULT 0,
        `owner-name` varchar(255) NOT NULL DEFAULT '',
        `owner-link` varchar(255) NOT NULL DEFAULT '',
        `owner-avatar` varchar(255) NOT NULL DEFAULT '',
+       `author-id` int(11) NOT NULL DEFAULT 0,
        `author-name` varchar(255) NOT NULL DEFAULT '',
        `author-link` varchar(255) NOT NULL DEFAULT '',
        `author-avatar` varchar(255) NOT NULL DEFAULT '',
@@ -511,7 +513,7 @@ CREATE TABLE IF NOT EXISTS `item` (
         INDEX `extid` (`extid`),
         INDEX `uid_id` (`uid`,`id`),
         INDEX `uid_created` (`uid`,`created`),
-        INDEX `uid_unseen` (`uid`,`unseen`),
+        INDEX `uid_unseen_contactid` (`uid`,`unseen`,`contact-id`),
         INDEX `uid_network_received` (`uid`,`network`,`received`),
         INDEX `uid_received` (`uid`,`received`),
         INDEX `uid_network_commented` (`uid`,`network`,`commented`),