|
|
@@ -9,10 +9,10 @@ use Phinx\Db\Adapter\AdapterInterface;
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
use Phinx\Migration\MigrationInterface;
|
|
|
use Phinx\Util\Util;
|
|
|
-use SixShop\Core\Helper;
|
|
|
use SixShop\System\Model\MigrationsModel;
|
|
|
use think\App;
|
|
|
use think\Model;
|
|
|
+use function SixShop\Core\extension_path;
|
|
|
|
|
|
class Migrate
|
|
|
{
|
|
|
@@ -28,7 +28,7 @@ class Migrate
|
|
|
{
|
|
|
$this->app = $app;
|
|
|
$this->moduleName = $moduleName;
|
|
|
- $this->path = Helper::extension_path($this->moduleName) . 'database' . DIRECTORY_SEPARATOR . 'migrations';
|
|
|
+ $this->path = extension_path($this->moduleName) . 'database' . DIRECTORY_SEPARATOR . 'migrations';
|
|
|
$this->migrations = $this->getMigrations();
|
|
|
$this->input = null;
|
|
|
$this->output = null;
|