1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:54:04 +00:00
Commit graph

251 commits

Author SHA1 Message Date
Samuel Štancl
479df83027
[2.x] Don't purge central connections (#189)
* Make sure central connections aren't ever purged

* Extract setDefaultConnection()

* Regression test w/ markTestIncomplete()

* Apply fixes from StyleCI
2019-10-19 23:52:13 +02:00
Samuel Štancl
cfcb2574c2
[2.1.0] Central queue connections (#181)
* Central queues

* Better dependency injection

* tenancy=false => central=true; move config to env setup

* Apply fixes from StyleCI
2019-10-17 21:00:52 +02:00
Chris Brown
d5b01219fd [2.x] Allow automatic seeding after automatic migrations (#160) 2019-10-17 19:25:30 +02:00
Samuel Štancl
3e78410d8a
[2.1.0] Fix queue race conditions (#178)
* Add TenantDoesNotExist exception, fix queued migrator serialization

* wip

* Apply fixes from StyleCI

* Use only one config for  queueing

* Apply fixes from StyleCI

* rename test

* rename test
2019-10-17 13:55:10 +02:00
Samuel Štancl
cbd3850a8f
[2.1.0] Initialize tenancy before executing controller constructors (#169)
* Update message about migrations in Install

* wip

* Apply fixes from StyleCI

* string instead of array

* Fix globalUrl binding

* Simplify if condition in TenantRouteServiceProvider

* Apply fixes from StyleCI

* Improve PreventAccessFromTenantDomains - look into middleware subgroups

* Fix typo

* gatherMiddleware() instead of middleware()

* Fix tests

* Apply fixes from StyleCI

* Update install command

* Apply fixes from StyleCI

* Add the PreventAccess MW to tenant routes by default
2019-10-15 20:23:56 +02:00
Samuel Štancl
a1270189da
[2.1.0] Tenant Run (#163)
* $tenant->run()

* Add assertion
2019-10-11 21:02:54 +02:00
Samuel Štancl
13fbb9d6b3 Merge branch '2.x' of github.com:stancl/tenancy into 2.x 2019-10-04 22:47:12 +02:00
Samuel Štancl
24ce8f9454 Disable all features by default 2019-10-04 22:10:02 +02:00
Samuel Štancl
abd0b8f04e
[2.x] Queued post-creation automigration (#154)
* Queued post-creation automigration

* Add shouldQueueMigration()

* Automigration test, config key, QueueTenancyBootstrapper support for QueueFake

* Apply fixes from StyleCI

* Fix if statement
2019-10-04 21:34:17 +02:00
Samuel Štancl
b66574b1ab Disable TenantConfig by default 2019-10-04 21:33:48 +02:00
Samuel Štancl
d4472469f0
[2.x] Add CreateTenant command (#153)
* Add CreateTenant command, fix TenantList output

* Create command test
2019-10-04 20:22:23 +02:00
Samuel Štancl
c965ca5c93
[2.x] Restructure drivers config (#151)
* Restructure drivers config

* Apply fixes from StyleCI
2019-09-30 18:38:32 +02:00
Samuel Štancl
d0b1729258
[2.x] Migrate fresh (#148)
* Remove comment

* migrate-fresh first draft

* Final

* DB name -> DB connection

* Add array_filter for consistency with Laravel

* Add test for migrate-fresh

* Apply fixes from StyleCI
2019-09-30 17:01:01 +02:00
Samuel Štancl
56a2bdf5af
[2.x] Tenant config (#145)
* TenantConfig first draft

* Apply fixes from StyleCI

* Add unsetTenantConfig

* Fix DB storage driver bug, add regression test (tenant_data_can_be_set_during_creation)

* Add tests & config keys

* Apply fixes from StyleCI
2019-09-30 16:52:46 +02:00
Samuel Štancl
4b5554dcac Fix issues with bootstrappers' state 2019-09-27 22:35:59 +02:00
Samuel Štancl
97d88af798 Disable RedisTenancyBootstrapper by default 2019-09-27 21:08:46 +02:00
Chris Brown
a166de2ef6 Rename migration stubs so they show next to each other (#127) 2019-09-25 08:07:01 +02:00
Samuel Štancl
88fbd9779d Add default value 2019-09-21 20:44:58 +02:00
Samuel Štancl
8dae2dcc6f Fix db_name_is_prefixed test 2019-09-21 19:37:19 +02:00
stancl
a4ab7ac080 Apply fixes from StyleCI 2019-09-21 17:29:17 +00:00
Samuel Štancl
75f00a58dd Fix asset tests 2019-09-21 18:13:29 +02:00
Samuel Štancl
bd08979e0c global_asset test 2019-09-21 17:29:26 +02:00
Samuel Štancl
b9054864aa Fix forced root 2019-09-21 17:22:33 +02:00
Samuel Štancl
74aead2a60 Add test for tenancy.database.based_on null 2019-09-21 14:06:42 +02:00
Samuel Štancl
c475e7a43d Fix transactions 2019-09-21 13:54:02 +02:00
Samuel Štancl
eb6cba8f1a Create MySQL/PostgreSQL DBs while using sqlite as the central DB driver 2019-09-21 11:11:36 +02:00
Samuel Štancl
509d00f9f3 Add docblocks 2019-09-20 20:14:58 +02:00
Samuel Štancl
93fc961b34 Tenant::with 2019-09-20 19:44:05 +02:00
Samuel Štancl
61cc0d9364 Update tenant tests 2019-09-20 19:24:02 +02:00
Samuel Štancl
b268dd5d50 Multiple domains test 2019-09-20 18:13:25 +02:00
stancl
bdaf6cf824 Apply fixes from StyleCI 2019-09-20 15:58:43 +00:00
Samuel Štancl
f177e309f0 Merge branch '2.x' of github.com:stancl/tenancy into 2.x 2019-09-20 17:57:56 +02:00
Samuel Štancl
bea6e4f5e9 shouldHaveReceived 2019-09-20 17:57:52 +02:00
Samuel Štancl
9892c3afc7 Data cache test 2019-09-20 17:56:22 +02:00
Samuel Štancl
0fe2d2de87 Fix 'no such table' 2019-09-20 17:06:55 +02:00
Samuel Štancl
8beaaaeda7 ensureTenantCanBeCreated test 2019-09-20 17:05:19 +02:00
stancl
91fe36af91 Apply fixes from StyleCI 2019-09-20 14:58:01 +00:00
Samuel Štancl
65b2c6ceee Null connection test 2019-09-20 16:57:53 +02:00
Samuel Štancl
d1be6c8e66 Add tests 2019-09-20 16:26:36 +02:00
Samuel Štancl
25927c36bd Test cleanup 2019-09-19 22:04:52 +02:00
Samuel Štancl
97d1fc87a2 Merge branch '2.x' of github.com:stancl/tenancy into 2.x 2019-09-19 20:56:23 +02:00
Samuel Štancl
8f2beb2d2e Add missing \ 2019-09-19 20:48:37 +02:00
stancl
7c3c597c53 Apply fixes from StyleCI 2019-09-19 18:41:10 +00:00
Samuel Štancl
f0dd99f099 Facade tests 2019-09-19 20:41:00 +02:00
Samuel Štancl
c9903cd43c Clean up 2019-09-19 20:32:09 +02:00
stancl
27a93028b2 Apply fixes from StyleCI 2019-09-19 16:39:08 +00:00
Samuel Štancl
e106ad6ade Merge branch '2.x' of github.com:stancl/tenancy into 2.x 2019-09-19 18:38:57 +02:00
Samuel Štancl
fb58f21f1c Get Redis tests to pass 2019-09-19 18:38:40 +02:00
stancl
3543340d26 Apply fixes from StyleCI 2019-09-18 18:27:57 +00:00
Samuel Štancl
6b0ec1b554 Passing tests with DB storage driver 2019-09-18 20:08:30 +02:00