From: Silvio Rhatto Date: Tue, 1 Dec 2020 14:33:09 +0000 (-0300) Subject: Fix: bookmarks: add values to bVoting and bVotes X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=37f10bd9d3f955fd648424d3908d23c33bea39fc;p=semanticscuttle.git 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 --- 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()