mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:34:04 +00:00
[4.x] Make tenants:migrate default to configured schema path (#985)
* Add --schema-path to migration parameters config * Set TenantDump's path to configured schema-path if the path doesn't get passed * Test schema dump file creation and usage * Fix code style (php-cs-fixer) * hardcode default instead of reading from a config key that doesn't have to exist Co-authored-by: PHP CS Fixer <phpcsfixer@example.com> Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
8c34640948
commit
a1a976c863
3 changed files with 38 additions and 0 deletions
|
|
@ -258,6 +258,7 @@ return [
|
|||
'migration_parameters' => [
|
||||
'--force' => true, // This needs to be true to run migrations in production.
|
||||
'--path' => [database_path('migrations/tenant')],
|
||||
'--schema-path' => database_path('schema/tenant-schema.dump'),
|
||||
'--realpath' => true,
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue