From 9a265ae12acbd8b7d33bbed050afea7be57ebfc3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Thu, 12 Apr 2018 12:12:14 +0200 Subject: [PATCH] Add cachedReactions database column See #2508 --- wcfsetup/install/files/lib/data/like/object/LikeObject.class.php | 1 + wcfsetup/setup/db/install.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php b/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php index 988a6e8df7..71d76a9408 100644 --- a/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php +++ b/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php @@ -22,6 +22,7 @@ use wcf\system\WCF; * @property-read integer $dislikes number of dislikes of the liked object * @property-read integer $cumulativeLikes cumulative result of likes (counting +1) and dislikes (counting -1) * @property-read string $cachedUsers serialized array with the ids and names of the three users who liked (+1) the object last + * @property-read string $cachedReactions serialized array with the reactionTypeIDs and the count of the reactions */ class LikeObject extends DatabaseObject { /** diff --git a/wcfsetup/setup/db/install.sql b/wcfsetup/setup/db/install.sql index 4f7293953d..f09784ca81 100644 --- a/wcfsetup/setup/db/install.sql +++ b/wcfsetup/setup/db/install.sql @@ -647,6 +647,7 @@ CREATE TABLE wcf1_like_object ( dislikes MEDIUMINT(7) NOT NULL DEFAULT 0, cumulativeLikes MEDIUMINT(7) NOT NULL DEFAULT 0, cachedUsers TEXT, + cachedReactions TEXT, UNIQUE KEY (objectTypeID, objectID) ); -- 2.20.1