1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 19:34:04 +00:00
tenancy/src
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
..
Actions phpstan improvements 2022-09-29 15:07:16 +02:00
Bootstrappers fix phpstan issues in FilesystemTenancyBootstrapper 2022-09-30 00:11:47 +02:00
Commands [4.x] Drop tenant databases on migrate:fresh (#971) 2022-10-17 15:19:30 +02:00
Concerns get down to 59 phpstan errors 2022-09-29 22:20:55 +02:00
Contracts get down to 21 phpstan errors 2022-09-29 23:39:35 +02:00
Controllers Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
Database Add current() and currentOrFail() tenant methods (#970) 2022-10-11 10:33:32 +02:00
Enums Fix code style (php-cs-fixer) 2022-08-02 02:21:33 +00:00
Events [4.x] Drop tenant databases on migrate:fresh (#971) 2022-10-17 15:19:30 +02:00
Exceptions Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
Facades Extend GlobalCache facade from the original facade (#495) 2020-09-18 23:18:21 +02:00
Features Merge branch 'master' of github.com:archtechx/tenancy 2022-09-29 23:40:41 +02:00
Jobs Fix code style (php-cs-fixer) 2022-09-29 13:08:06 +00:00
Listeners Merge branch 'master' of github.com:archtechx/tenancy 2022-09-29 23:40:41 +02:00
Middleware Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
Resolvers Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
CacheManager.php general refactor, move more classes under Database namespace 2022-08-27 03:17:16 +02:00
helpers.php Fix code style (php-cs-fixer) 2022-09-29 00:47:38 +00:00
Tenancy.php Add identification section to config, refactor static properties 2022-10-01 20:01:18 +02:00
TenancyServiceProvider.php [4.x] Drop tenant databases on migrate:fresh (#971) 2022-10-17 15:19:30 +02:00
UUIDGenerator.php phpstan, global_cache, resolver improvements, InitializationHelpers trait 2022-09-29 02:47:13 +02:00