mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 15:32:17 +00:00
Migration scripts and lib fixes
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user