]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
Merge pull request #2636 from rabuzarus/2506_frio_strings
[friendica.git] / database.sql
index 275982d8446346b1b27ee9485862585f37cb4452..c337df586eca26066a5c62a696cd9166313351f1 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 3.5-dev (Asparagus)
--- DB_UPDATE_VERSION 1197
+-- DB_UPDATE_VERSION 1198
 -- ------------------------------------------
 
 
@@ -523,6 +523,8 @@ CREATE TABLE IF NOT EXISTS `item` (
         INDEX `uid_parenturi` (`uid`,`parent-uri`),
         INDEX `uid_contactid_created` (`uid`,`contact-id`,`created`),
         INDEX `gcontactid_uid_created` (`gcontact-id`,`uid`,`created`),
+        INDEX `authorid_created` (`author-id`,`created`),
+        INDEX `ownerid_created` (`owner-id`,`created`),
         INDEX `wall_body` (`wall`,`body`(6)),
         INDEX `uid_visible_moderated_created` (`uid`,`visible`,`moderated`,`created`),
         INDEX `uid_uri` (`uid`,`uri`),
@@ -964,6 +966,8 @@ CREATE TABLE IF NOT EXISTS `thread` (
        `uid` int(10) unsigned NOT NULL DEFAULT 0,
        `contact-id` int(11) unsigned NOT NULL DEFAULT 0,
        `gcontact-id` int(11) unsigned NOT NULL DEFAULT 0,
+       `owner-id` int(11) unsigned NOT NULL DEFAULT 0,
+       `author-id` int(11) unsigned NOT NULL DEFAULT 0,
        `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
        `edited` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
        `commented` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',