]> git.mxchange.org Git - friendica.git/blobdiff - database.sql
Fix: subscribing to the old followers hadn't worked
[friendica.git] / database.sql
index 606ac6d81452b1c8742eb2679801c0c88c7dfce0..4275c38315ccf26cd82c81b1df9dbcd3c93614de 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 3.6-dev (Asparagus)
--- DB_UPDATE_VERSION 1254
+-- DB_UPDATE_VERSION 1255
 -- ------------------------------------------
 
 
@@ -445,7 +445,6 @@ CREATE TABLE IF NOT EXISTS `item` (
        `uri` varchar(255) NOT NULL DEFAULT '' COMMENT '',
        `uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'User id',
        `contact-id` int unsigned NOT NULL DEFAULT 0 COMMENT '',
-       `gcontact-id` int unsigned NOT NULL DEFAULT 0 COMMENT '',
        `type` varchar(20) NOT NULL DEFAULT '' COMMENT '',
        `wall` boolean NOT NULL DEFAULT '0' COMMENT '',
        `gravity` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '',
@@ -513,6 +512,7 @@ CREATE TABLE IF NOT EXISTS `item` (
         INDEX `uid_id` (`uid`,`id`),
         INDEX `uid_contactid_id` (`uid`,`contact-id`,`id`),
         INDEX `uid_created` (`uid`,`created`),
+        INDEX `uid_commented` (`uid`,`commented`),
         INDEX `uid_unseen_contactid` (`uid`,`unseen`,`contact-id`),
         INDEX `uid_network_received` (`uid`,`network`,`received`),
         INDEX `uid_network_commented` (`uid`,`network`,`commented`),
@@ -948,7 +948,6 @@ CREATE TABLE IF NOT EXISTS `thread` (
        `iid` int unsigned NOT NULL DEFAULT 0 COMMENT '',
        `uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'User id',
        `contact-id` int unsigned NOT NULL DEFAULT 0 COMMENT '',
-       `gcontact-id` int unsigned NOT NULL DEFAULT 0 COMMENT '',
        `owner-id` int unsigned NOT NULL DEFAULT 0 COMMENT '',
        `author-id` int unsigned NOT NULL DEFAULT 0 COMMENT '',
        `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',