Abrar Ahmad
|
bf504f4c79
|
[4.x] Use a dedicated DB connection for creating/deleting tenant databases (#946)
* create host connection for creating, deleting tenants
* purge connection and add more tests
* remove unused method
* Improvements
* test named
* remove host connection name config key
* Revert "remove host connection name config key"
This reverts commit 42acb823e8.
* Update DatabaseConfig.php
* Update assets/config.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* Update DatabaseConfig.php
* todo and comments
* remove debug code
* Update DatabaseConfig.php
* strict assertions
* Update TenantDatabaseManagerTest.php
* Update src/Database/DatabaseConfig.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* purge connection improvements
* Update DatabaseConfig.php
* Update DatabaseConfig.php
* Update DatabaseConfig.php
* improve comments
* remove "ensuring connection exists" check
* remove test because it's duplicate
* removing test because other two tests are using the same logic, so this test kinda already covered
* Update TenantDatabaseManagerTest.php
* Update DatabaseConfig.php
* Revert "Update TenantDatabaseManagerTest.php"
This reverts commit b8e0a1c982.
* add default
* Update src/Database/DatabaseConfig.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* update comment
* remove unness mysql config and add a comment
* tenancy_db_connection tenant config test
* Update TenantDatabaseManagerTest.php
* update test name and improve assertions
* typo
* change inline variable name
* Update TenantDatabaseManagerTest.php
* Update TenantDatabaseManagerTest.php
* add DB::purge() calls
* add new assertions [ci skip]
* Fix code style (php-cs-fixer)
* replace hostManager with manager
* fix test
* method rename
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
|
2022-10-31 12:13:54 +01:00 |
|
Samuel Štancl
|
fe0a322b87
|
add public connection() method to the Tenant DB manager interface
|
2022-10-25 12:53:31 +02:00 |
|
Samuel Štancl
|
f98a901aeb
|
get down to 21 phpstan errors
|
2022-09-29 23:39:35 +02:00 |
|
Samuel Štancl
|
a94227a19c
|
get down to 59 phpstan errors
|
2022-09-29 22:20:55 +02:00 |
|
Samuel Štancl
|
d2e1ce0a1e
|
refactor TenantDatabaseManagers
|
2022-08-27 22:29:08 +02:00 |
|
Samuel Štancl
|
40bf28c7d0
|
general refactor, move more classes under Database namespace
|
2022-08-27 03:17:16 +02:00 |
|