app module
This commit is contained in:
@ -6,6 +6,7 @@ use Illuminate\Database\Migrations\DatabaseMigrationRepository;
|
||||
use Illuminate\Database\Migrations\Migrator;
|
||||
use Illuminate\Filesystem\Filesystem;
|
||||
use kernel\App;
|
||||
use kernel\helpers\Debug;
|
||||
|
||||
class MigrationService
|
||||
{
|
||||
@ -21,6 +22,8 @@ class MigrationService
|
||||
*/
|
||||
public function runAtPath(string $path = ROOT_DIR . '/migrations'): array
|
||||
{
|
||||
$path = getConst($path);
|
||||
|
||||
try {
|
||||
$dmr = new DatabaseMigrationRepository(App::$db->capsule->getDatabaseManager(), 'migration');
|
||||
|
||||
|
Reference in New Issue
Block a user