Update PicoDb
This commit is contained in:
parent
871f1d1d64
commit
77f3c7c57a
@ -7,6 +7,7 @@ function version_27($pdo)
|
||||
$pdo->exec('ALTER TABLE config ADD COLUMN items_display_mode TEXT DEFAULT "summaries"');
|
||||
}
|
||||
|
||||
|
||||
function version_26($pdo)
|
||||
{
|
||||
$pdo->exec('ALTER TABLE config ADD COLUMN bookmarklet_token TEXT DEFAULT "'.\Model\Config\generate_token().'"');
|
||||
|
6
vendor/PicoDb/Database.php
vendored
6
vendor/PicoDb/Database.php
vendored
@ -78,6 +78,12 @@ class Database
|
||||
}
|
||||
|
||||
|
||||
public function closeConnection()
|
||||
{
|
||||
$this->pdo = null;
|
||||
}
|
||||
|
||||
|
||||
public function escapeIdentifier($value)
|
||||
{
|
||||
return $this->pdo->escapeIdentifier($value);
|
||||
|
8
vendor/PicoDb/Table.php
vendored
8
vendor/PicoDb/Table.php
vendored
@ -44,7 +44,11 @@ class Table
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Update
|
||||
*
|
||||
* Note: Do not use `rowCount()` the behaviour is different across drivers
|
||||
*/
|
||||
public function update(array $data)
|
||||
{
|
||||
$columns = array();
|
||||
@ -70,7 +74,7 @@ class Table
|
||||
|
||||
$result = $this->db->execute($sql, $values);
|
||||
|
||||
return $result !== false && $result->rowCount() > 0;
|
||||
return $result !== false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user