From c1a5888662feefe2daaa501b3d058a4468ecd067 Mon Sep 17 00:00:00 2001 From: Matthew Nelson - Silverark Date: Mon, 15 Aug 2016 13:57:25 +0100 Subject: [PATCH] Update Databse.php to errors on Refresh The following error was received when running a refresh. The third paramemter on CI_DB_forge::create_table() in the migrations expects the Migration config file. Potentially this might be better loaded in the Migration Library? I just copied the config load in the migrate function above. A PHP Error was encountered Severity: 4096 Message: Argument 3 passed to CI_DB_forge::create_table() must be of the type array, null given, called in /media/server/www/churchbox/manager/website/application/database/migrations/20141007214216_Create_auth_tables.php on line 35 and defined Filename: /media/server/www/churchbox/manager/website/system/database/DB_forge.php Line Number: 322 Backtrace - create_table() - Line 35 in /media/server/www/churchbox/manager/website/application/database/migrations/20141007214216_Create_auth_tables.php --- myth/CIModules/database/controllers/Database.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/myth/CIModules/database/controllers/Database.php b/myth/CIModules/database/controllers/Database.php index a9517159..59faace1 100644 --- a/myth/CIModules/database/controllers/Database.php +++ b/myth/CIModules/database/controllers/Database.php @@ -171,6 +171,9 @@ public function quietMigrate($type='app', $to = null) public function refresh($type=null) { $this->load->library('migration'); + + //Load the migration config + $this->config->load('migration'); if (empty($type)) {