Commit a38eb7aa authored by Ad Schellevis's avatar Ad Schellevis

(mvc) change case for Migrations directory

parent 89fa64db
......@@ -535,7 +535,7 @@ abstract class BaseModel
version_compare($this->internal_model_version, $mig_version, '>=') ) {
// execute upgrade action
$tmp = explode('.', basename($filename))[0];
$mig_classname = "\\".$class_info->getNamespaceName()."\\migrations\\".$tmp;
$mig_classname = "\\".$class_info->getNamespaceName()."\\Migrations\\".$tmp;
$mig_class = new \ReflectionClass($mig_classname);
if ($mig_class->getParentClass()->name == 'OPNsense\Base\BaseModelMigration') {
$migobj = $mig_class->newInstance();
......
......@@ -27,7 +27,7 @@
*
*/
namespace tests\OPNsense\Base\BaseModel\migrations;
namespace tests\OPNsense\Base\BaseModel\Migrations;
use OPNsense\Base\BaseModelMigration;
......
......@@ -27,7 +27,7 @@
*
*/
namespace tests\OPNsense\Base\BaseModel\migrations;
namespace tests\OPNsense\Base\BaseModel\Migrations;
use OPNsense\Base\BaseModelMigration;
......
......@@ -27,7 +27,7 @@
*
*/
namespace tests\OPNsense\Base\BaseModel\migrations;
namespace tests\OPNsense\Base\BaseModel\Migrations;
use OPNsense\Base\BaseModelMigration;
......
......@@ -30,9 +30,9 @@ namespace tests\OPNsense\Base\BaseModel;
use OPNsense\Base\BaseModel;
require_once 'migrations/M0_0_1.php';
require_once 'migrations/M1_0_0.php';
require_once 'migrations/M1_0_1.php';
require_once 'Migrations/M0_0_1.php';
require_once 'Migrations/M1_0_0.php';
require_once 'Migrations/M1_0_1.php';
/**
* Class TestModel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment