From cede5d5434e4e50145daf2413c962a335c13cc99 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Wed, 10 Sep 2014 16:51:44 +0200 Subject: Fix Mysql and Postgresql bug --- vendor/PicoDb/Schema.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'vendor') 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; } -- cgit v1.2.3