1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 14:14:04 +00:00
tenancy/assets
lukinovec 080b271bb3
[4.x] Drop tenant databases on migrate:fresh (#971)
* Test that `migrate:fresh` deletes tenant databases

* Delete tenants on `migrate:fresh`

* Fix code style (php-cs-fixer)

* Add config key for dropping tenant databases on `migrate:fresh`

* Add MigrateFreshOverride

* Try to override `migrate:fresh` in TenancyServiceProvider

* Update `migrate:fresh` test

* Fix code style (php-cs-fixer)

* Drop tenant databases by default

* Change `migrate:fresh` test to test if the tenant DBs are dropped by default

* Override `migrate:fresh` by extending `FreshCommand` in TenancyServiceProvider

* Update MigrateFreshOverride

* Fix code style (php-cs-fixer)

* Fix commands test

* Simplify handle method

* Fix code style (php-cs-fixer)

* Don't drop tenant DBs on migrate:fresh by default

* Change command overriding

* Update migrate:fresh test

* always register MigrateFreshOverride

* misc

Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-10-17 15:19:30 +02:00
..
impersonation-migrations Fix asset publishing 2020-05-17 15:14:05 +02:00
migrations [4.x] Don't use onDeleteCascade in the migrations (#883) 2022-07-20 13:02:33 +02:00
config.php [4.x] Drop tenant databases on migrate:fresh (#971) 2022-10-17 15:19:30 +02:00
routes.php Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
TenancyServiceProvider.stub.php update comment about middleware order 2022-10-01 20:02:13 +02:00
tenant_routes.stub.php Fix tenants:list 2020-05-29 09:33:49 +02:00