Migration scripts and lib fixes

This commit is contained in:
bison
2016-08-16 17:09:30 +02:00
parent 2188a120c2
commit dd6ef9fdb1
2 changed files with 12 additions and 3 deletions
+10 -1
View File
@@ -527,7 +527,16 @@ class MigrationLib extends CI_Migration
{
if (! @$this->db->simple_query($query))
{
$this->printError($this->db->error());
$error = $this->db->error();
if (is_array($error) && isset($error["message"]))
{
$this->printError($error["message"]);
}
else
{
$this->printError("Error while executing a query");
}
}
$this->printInfo("Query correctly executed");