From 37f10bd9d3f955fd648424d3908d23c33bea39fc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 1 Dec 2020 11:33:09 -0300 Subject: Fix: bookmarks: add values to bVoting and bVotes Avoid this kind of MySQL errors: ERROR 1364 (HY000): Field 'bVoting' doesn't have a default value --- src/SemanticScuttle/Service/Bookmark.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SemanticScuttle/Service/Bookmark.php b/src/SemanticScuttle/Service/Bookmark.php index 39ec4f0..40a2b67 100644 --- a/src/SemanticScuttle/Service/Bookmark.php +++ b/src/SemanticScuttle/Service/Bookmark.php @@ -504,7 +504,9 @@ class SemanticScuttle_Service_Bookmark extends SemanticScuttle_DbService 'bPrivateNote' => $privateNote, 'bStatus' => intval($status), 'bHash' => $this->getHash($address), - 'bShort' => $short + 'bShort' => $short, + 'bVoting' => 0, + 'bVotes' => 0, ); $sql = 'INSERT INTO '. $this->getTableName() -- cgit v1.2.3