From 57257840553a2f91c85e4ad37143fffd50b1cc65 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 5 May 2020 15:47:35 +0000 Subject: [PATCH] Update database definition, cleaned code --- database.sql | 3 +++ src/Database/PostUpdate.php | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/database.sql b/database.sql index 5f6fc2932e..a26b6f2bfd 100644 --- a/database.sql +++ b/database.sql @@ -815,6 +815,8 @@ CREATE TABLE IF NOT EXISTS `notify` ( `link` varchar(255) NOT NULL DEFAULT '' COMMENT '', `iid` int unsigned NOT NULL DEFAULT 0 COMMENT 'item.id', `parent` int unsigned NOT NULL DEFAULT 0 COMMENT '', + `uri-id` int unsigned COMMENT 'Item-uri id of the related post', + `parent-uri-id` int unsigned COMMENT 'Item-uri id of the parent of the related post', `seen` boolean NOT NULL DEFAULT '0' COMMENT '', `verb` varchar(100) NOT NULL DEFAULT '' COMMENT '', `otype` varchar(10) NOT NULL DEFAULT '' COMMENT '', @@ -833,6 +835,7 @@ CREATE TABLE IF NOT EXISTS `notify-threads` ( `id` int unsigned NOT NULL auto_increment COMMENT 'sequential ID', `notify-id` int unsigned NOT NULL DEFAULT 0 COMMENT '', `master-parent-item` int unsigned NOT NULL DEFAULT 0 COMMENT '', + `master-parent-uri-id` int unsigned COMMENT 'Item-uri id of the parent of the related post', `parent-item` int unsigned NOT NULL DEFAULT 0 COMMENT '', `receiver-uid` mediumint unsigned NOT NULL DEFAULT 0 COMMENT 'User id', PRIMARY KEY(`id`) diff --git a/src/Database/PostUpdate.php b/src/Database/PostUpdate.php index 25cf991422..514956b222 100644 --- a/src/Database/PostUpdate.php +++ b/src/Database/PostUpdate.php @@ -688,6 +688,7 @@ class PostUpdate } $id = DI::config()->get('system', 'post_update_version_1345_id', 0); + Logger::info('Start', ['item' => $id]); $rows = 0; @@ -726,8 +727,6 @@ class PostUpdate return false; } - - /** * Fill the "tag" table with tags and mentions from the "term" table * -- 2.39.5