lukinovec
b0e6a496c9
Remove redundant Tenant::all() call
2022-10-28 10:47:57 +02:00
Samuel Štancl
79da8574a8
all() -> get()
2022-10-28 00:54:19 +02:00
Samuel Štancl
73aaaf2b1f
code style
2022-10-28 00:50:46 +02:00
Samuel Štancl
a9673f3f91
fix all() call
2022-10-28 00:49:28 +02:00
Samuel Štancl
db016a1453
Update HasPending.php
2022-10-28 00:48:09 +02:00
lukinovec
d81d141ed4
Rename the pending tenant check test name
2022-10-26 10:10:48 +02:00
lukinovec
40992e0a86
Remove Tenant::query()->delete() from pending tenant check test
2022-10-26 10:10:12 +02:00
lukinovec
512da96674
Update include in queries test name
2022-10-26 09:49:13 +02:00
Samuel Štancl
a667fd1e66
add a todo
2022-10-25 18:13:09 +02:00
lukinovec
18d12f3a43
Update test name
2022-10-21 15:28:59 +02:00
lukinovec
d84f171b58
Make test name more accurate
2022-10-21 15:26:30 +02:00
lukinovec
c3fb301f9d
Fix ClearPendingTenants bug
2022-10-21 15:21:20 +02:00
lukinovec
69e37ffa30
Dynamically get virtual column name in ClearPendingTenants
2022-10-21 15:03:23 +02:00
lukinovec
789a05b125
Dynamically get columns for pending queries
2022-10-21 14:59:43 +02:00
lukinovec
a13384dede
Update pending tenant pulling test
2022-10-21 14:38:40 +02:00
Samuel Štancl
e20c391897
bump stancl/virtualcolumn to ^1.3
2022-10-21 14:11:34 +02:00
lukinovec
0769e187ac
Add a test that checks if pulling a pending tenant removes it from the pool
2022-10-21 11:05:29 +02:00
lukinovec
1899429723
Rename pullPendingTenant to pullPending and don't pass bool to that method
2022-10-21 10:30:20 +02:00
lukinovec
e172408576
Merge branch 'master' of https://github.com/archtechx/tenancy into stein-j-readied-tenant
2022-10-20 14:09:32 +02:00
lukinovec
85e74eb5c6
Add queuetest to gitignore
2022-10-20 12:55:13 +02:00
lukinovec
6ecd3d6289
Delete queuetest file
2022-10-20 12:53:09 +02:00
lukinovec
54f11fa94f
Delete queuetest from gitignore
2022-10-20 12:52:32 +02:00
lukinovec
d864aa72c9
Move pending tenant tests to a more appropriate file
2022-10-20 12:43:16 +02:00
PHP CS Fixer
34b4f956ab
Fix code style (php-cs-fixer)
2022-10-20 10:31:28 +00:00
lukinovec
319620d6ab
Import commands
2022-10-20 12:30:47 +02:00
lukinovec
c7ccd6a90d
Add docblock type
2022-10-20 12:29:42 +02:00
Samuel Štancl
5d688e6e5d
remove duplicate 'routes/tenant.php' from message
2022-10-18 21:52:02 +02:00
Jori Stein
e4f5b92485
[4.x] Update commands CLI outputs ( #968 )
...
* Using laravel components
* Ensure commands returns success
* update tests
* clean
* bump EndBug version
* Update ci.yml
* Update ci.yml
* Update ci.yml
* revert CI changes
* Update ci.yml
* Update ci.yml
* Update ci.yml
* revert CI changes to it's original state
* fix typos, improve code
* improve Install & TenantList commands
* php-cs-fixer
* type GitHub properly
Co-authored-by: Abrar Ahmad <abrar.dev99@gmail.com>
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-10-18 19:11:57 +02:00
Abrar Ahmad
05f1b2d6f5
Add cookie option on Initialize Tenancy by Request identification ( #980 )
...
* Add cookie option on Initialize Tenancy by Request identification
* add cookie property
2022-10-18 13:52:16 +02:00
Samuel Štancl
090fc475eb
add pullPendingTenantFromPool
2022-10-18 13:39:02 +02:00
Samuel Štancl
e93a5181c3
fix test names
2022-10-18 13:34:26 +02:00
Samuel Štancl
29460de29d
use plural in test names
2022-10-18 13:28:56 +02:00
PHP CS Fixer
693e00b9be
Fix code style (php-cs-fixer)
2022-10-17 17:48:49 +00:00
Jori Stein
3f60c4a652
Add maintenance mode events ( #979 )
2022-10-17 19:48:24 +02:00
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
lukinovec
42dab2985a
Add current() and currentOrFail() tenant methods ( #970 )
...
* Add and test `Tenant::current()`
* Add and test `Tenant::currentOrFail()`
* Fix code style (php-cs-fixer)
* Update currentOrFail declaration
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Change self return type to static
Co-authored-by: PHP CS Fixer <phpcsfixer@example.com>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-10-11 10:33:32 +02:00
Samuel Štancl
76a3e269c8
final class -> class
2022-10-09 19:53:14 +02:00
lukinovec
6222a72a2f
Merge branch 'master' of https://github.com/archtechx/tenancy into stein-j-readied-tenant
2022-10-05 13:42:38 +02:00
lukinovec
af689f816a
Make with-pending VALUE_NONE
2022-10-05 13:35:23 +02:00
lukinovec
72f742e53d
Test using --with-pending and the include_in_queries config value
2022-10-05 10:23:40 +02:00
lukinovec
e3e85a0e88
Add optionNotPassedValue property
2022-10-05 10:18:56 +02:00
Samuel Štancl
6ee93d0441
update comment about middleware order
2022-10-01 20:02:13 +02:00
Samuel Štancl
ccaba05272
Add identification section to config, refactor static properties
2022-10-01 20:01:18 +02:00
Samuel Štancl
e5bc8ddb77
add tenantIdColumn() method (refactor previous commit)
2022-10-01 18:01:39 +02:00
Samuel Štancl
24146b26e2
fix #854
2022-10-01 17:59:33 +02:00
PHP CS Fixer
ed4632142b
Fix code style (php-cs-fixer)
2022-09-30 13:02:40 +00:00
lukinovec
040c42d325
Add and use getWithPendingOption method
2022-09-30 15:02:05 +02:00
lukinovec
09bb5326c7
Remove duplicate tenancy bootstrappers config setting
2022-09-30 11:21:44 +02:00
PHP CS Fixer
efd5238831
Fix code style (php-cs-fixer)
2022-09-30 09:10:39 +00:00
lukinovec
a346ec450e
Remove tenant ordering
2022-09-30 11:10:03 +02:00