mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:34:04 +00:00
Migration paths (#268)
* allow multiple paths for tenant migrations * tests: allow multiple paths for tenant migrations * Update tests/CommandsTest.php Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com> * Update src/Traits/DealsWithMigrations.php Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com> * Update tests/CommandsTest.php Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com> * Update src/Traits/DealsWithMigrations.php Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com> * Update tests/TestCase.php Co-Authored-By: Samuel Štancl <samuel.stancl@gmail.com> Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
95ee295da1
commit
06ee1ff0e2
3 changed files with 3 additions and 3 deletions
|
|
@ -12,6 +12,6 @@ trait DealsWithMigrations
|
|||
return parent::getMigrationPaths();
|
||||
}
|
||||
|
||||
return [config('tenancy.migrations_directory', database_path('migrations/tenant'))];
|
||||
return config('tenancy.migration_paths', [config('tenancy.migrations_directory') ?? database_path('migrations/tenant')]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue