mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:34:02 +00:00
Allow --path to be specified for migration commands
This commit is contained in:
parent
aeb15d4251
commit
47aaece876
1 changed files with 4 additions and 0 deletions
|
|
@ -8,6 +8,10 @@ trait DealsWithMigrations
|
||||||
{
|
{
|
||||||
protected function getMigrationPaths()
|
protected function getMigrationPaths()
|
||||||
{
|
{
|
||||||
|
if ($this->input->hasOption('path')) {
|
||||||
|
return parent::getMigrationPaths();
|
||||||
|
}
|
||||||
|
|
||||||
return [config('tenancy.migrations_directory', database_path('migrations/tenant'))];
|
return [config('tenancy.migrations_directory', database_path('migrations/tenant'))];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue