]> git.mxchange.org Git - friendica.git/commitdiff
Fix slow queries
authorMichael <heluecht@pirati.ca>
Mon, 1 Mar 2021 22:08:33 +0000 (22:08 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 1 Mar 2021 22:08:33 +0000 (22:08 +0000)
database.sql

index 12d03225415fb130ea1c11b0f6e8f8b5b8f7f9c2..f298a8e8e36d076db1e0d33f0409766c56d7b24c 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 2021.03-dev (Red Hot Poker)
--- DB_UPDATE_VERSION 1406
+-- DB_UPDATE_VERSION 1407
 -- ------------------------------------------
 
 
@@ -929,7 +929,7 @@ CREATE TABLE IF NOT EXISTS `post` (
        `network` char(4) NOT NULL DEFAULT '' COMMENT 'Network from where the item comes from',
        `owner-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the owner of this item',
        `author-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the author of this item',
-       `causer-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
+       `causer-id` int unsigned COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
        `post-type` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Post type (personal note, bookmark, ...)',
        `vid` smallint unsigned COMMENT 'Id of the verb table entry that contains the activity verbs',
        `private` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '0=public, 1=private, 2=unlisted',
@@ -1061,7 +1061,7 @@ CREATE TABLE IF NOT EXISTS `post-thread` (
        `uri-id` int unsigned NOT NULL COMMENT 'Id of the item-uri table entry that contains the item uri',
        `owner-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Item owner',
        `author-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Item author',
-       `causer-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
+       `causer-id` int unsigned COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
        `network` char(4) NOT NULL DEFAULT '' COMMENT '',
        `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
        `received` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
@@ -1096,7 +1096,7 @@ CREATE TABLE IF NOT EXISTS `post-user` (
        `network` char(4) NOT NULL DEFAULT '' COMMENT 'Network from where the item comes from',
        `owner-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the owner of this item',
        `author-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the author of this item',
-       `causer-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
+       `causer-id` int unsigned COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
        `post-type` tinyint unsigned NOT NULL DEFAULT 0 COMMENT 'Post type (personal note, bookmark, ...)',
        `vid` smallint unsigned COMMENT 'Id of the verb table entry that contains the activity verbs',
        `private` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '0=public, 1=private, 2=unlisted',
@@ -1155,7 +1155,7 @@ CREATE TABLE IF NOT EXISTS `post-thread-user` (
        `uri-id` int unsigned NOT NULL COMMENT 'Id of the item-uri table entry that contains the item uri',
        `owner-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Item owner',
        `author-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Item author',
-       `causer-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
+       `causer-id` int unsigned COMMENT 'Link to the contact table with uid=0 of the contact that caused the item creation',
        `network` char(4) NOT NULL DEFAULT '' COMMENT '',
        `created` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',
        `received` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '',