aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2020-12-01 11:33:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2020-12-01 11:33:09 -0300
commit37f10bd9d3f955fd648424d3908d23c33bea39fc (patch)
tree31e23c98e41159856cf3c7e20bc47765e02765ee
parentb3bbae81b7b2c8132a4e43cfa49b81fae58dd8e5 (diff)
downloadsemanticscuttle-37f10bd9d3f955fd648424d3908d23c33bea39fc.tar.gz
semanticscuttle-37f10bd9d3f955fd648424d3908d23c33bea39fc.tar.bz2
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
-rw-r--r--src/SemanticScuttle/Service/Bookmark.php4
1 files changed, 3 insertions, 1 deletions
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()