1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:54:04 +00:00

[2.2.0] Allow --path to be specified for migration commands (#211)

* Allow --path to be specified for migration commands

* Fix tests
This commit is contained in:
Samuel Štancl 2019-11-07 21:44:45 +01:00 committed by GitHub
parent b3cf499ebd
commit 2b00665247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,6 +8,10 @@ trait DealsWithMigrations
{
protected function getMigrationPaths()
{
if ($this->input->hasOption('path') && $this->input->getOption('path')) {
return parent::getMigrationPaths();
}
return [config('tenancy.migrations_directory', database_path('migrations/tenant'))];
}
}