]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Fix: bookmarks: add values to bVoting and bVotes
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 1 Dec 2020 14:33:09 +0000 (11:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 1 Dec 2020 14:33:09 +0000 (11:33 -0300)
Avoid this kind of MySQL errors:

  ERROR 1364 (HY000): Field 'bVoting' doesn't have a default value

src/SemanticScuttle/Service/Bookmark.php

index 39ec4f08bb5e6d9e756e3420798f87b8f444f114..40a2b671e80dbc42bb4964ffc70f0a4da15c8de8 100644 (file)
@@ -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()