1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-13 00:54:05 +00:00
tenancy/src/Commands
lukinovec 342c67fe02
Add skip-failing option to the Migrate command (#945)
* Add and test Migrate command's skip-failing option

* Improve naming

* Move migration event dispatching inside try block

* Change test name

* Fix skip-failing test

* Use QueryException instead of Exception

* Correct TenantDatabaseDoesNotExistException import

* Correct test

* Check for the the testing env in DB bootstrapper

* Correct the Migrate command

* Fix code style (php-cs-fixer)

* add docs todo

* Add QueryException to the Migrat command try/catch

* Return status codes in Migrate

* Fix code style (php-cs-fixer)

* Add test for not stopping tenants:migrate after the first failure

* Update Migrate command

* Fix code style (php-cs-fixer)

* Fix code style (php-cs-fixer)

* Use `getTenants()`

* Use withtenantDatabases where needed

* Add withTenantDatabases to test

---------

Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2023-02-01 06:55:26 +01:00
..
ClearPendingTenants.php Improve commands CLI output (#1030) 2022-12-14 15:08:00 +01:00
CreatePendingTenants.php Improve commands CLI output (#1030) 2022-12-14 15:08:00 +01:00
Down.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
Install.php resolve all phpstan issues 2022-11-08 13:34:04 +01:00
Link.php Improve commands CLI output (#1030) 2022-12-14 15:08:00 +01:00
Migrate.php Add skip-failing option to the Migrate command (#945) 2023-02-01 06:55:26 +01:00
MigrateFresh.php resolve all phpstan issues 2022-11-08 13:34:04 +01:00
MigrateFreshOverride.php Only delete tenants in MigrateFreshOverride if the tenants table exists (#1007) 2022-11-18 15:58:04 +01:00
Rollback.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
Run.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
Seed.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00
TenantDump.php Use the hardcoded default path in TenantDump only if the path isn't configured (#1019) 2022-11-23 13:12:29 +01:00
TenantList.php [4.x] Update commands CLI outputs (#968) 2022-10-18 19:11:57 +02:00
Up.php [4.x] Add pending tenants (modified #782) (#869) 2022-10-31 12:14:44 +01:00