summaryrefslogtreecommitdiff
path: root/vendor/PicoDb
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-10 16:51:44 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-10 16:51:44 +0200
commitcede5d5434e4e50145daf2413c962a335c13cc99 (patch)
tree2e967e7c95884f9cbab880ff7aedc72466e9d47a /vendor/PicoDb
parent28ff8dad91c9e3c25f6a3b5398ae15f2a1ef95cd (diff)
Fix Mysql and Postgresql bug
Diffstat (limited to 'vendor/PicoDb')
-rw-r--r--vendor/PicoDb/Schema.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/vendor/PicoDb/Schema.php b/vendor/PicoDb/Schema.php
index b75366ea..a054ac09 100644
--- a/vendor/PicoDb/Schema.php
+++ b/vendor/PicoDb/Schema.php
@@ -36,20 +36,15 @@ class Schema
$function_name = '\Schema\version_'.$i;
if (function_exists($function_name)) {
-
call_user_func($function_name, $this->db->getConnection());
$this->db->getConnection()->setSchemaVersion($i);
}
- else {
-
- throw new \LogicException('To execute a database migration, you need to create this function: "'.$function_name.'".');
- }
}
$this->db->closeTransaction();
}
catch (\PDOException $e) {
-
+ $this->db->setLogMessage($function_name.' => '.$e->getMessage());
$this->db->cancelTransaction();
return false;
}