CodeExplorer migrationFromFile example
if (!
$this->enabled
) { throw ConfigException::
forDisabledMigrations();
} $this->
ensureTable();
if ($group !== null
) { $this->groupFilter =
$group;
$this->
setGroup($group);
} $migration =
$this->
migrationFromFile($path,
$namespace);
if (empty($migration)) { $message =
lang('Migrations.notFound'
);
if ($this->silent
) { $this->cliMessages
[] = "\t" . CLI::
color($message, 'red'
);
return false;
} throw new RuntimeException($message);
}