1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:34:03 +00:00
Commit graph

41 commits

Author SHA1 Message Date
Chris Brown
7e2eed88da [2.1.0] Allow automatic seeding after automatic migrations
Fixes #158

If config('tenancy.seeder_class') is null or a blank string, the seeder-class parameter is not passed, and therefore Laravel's default option of calling 'DatabaseSeeder' will occur.

As with Laravel's normal seeding process, the class is treated as the "root" seeder class, which can call other seeder classes in turn.
2019-10-17 10:57:58 -04: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
Chris Brown
75f038877f Update config.php (#155)
Removed unrelated example
2019-10-07 22:05:55 +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
6d00b9b866 Use $data instead of get() in TenantConfig 2019-10-04 22:32:43 +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
c965ca5c93
[2.x] Restructure drivers config (#151)
* Restructure drivers config

* Apply fixes from StyleCI
2019-09-30 18:38:32 +02:00
Samuel Štancl
60a67bf901 Move UUID generator to a new namespace 2019-09-30 17:12:34 +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
97d88af798 Disable RedisTenancyBootstrapper by default 2019-09-27 21:08:46 +02:00
Anton Komarev
fc39512b3b Use ::class instead of strings in config (#133) 2019-09-26 14:33:29 +02:00
Samuel Štancl
4a17992957 Home route -> home url 2019-09-22 17:24:02 +02:00
Samuel Štancl
e21f5ad76f Fix PreventAccess middleware 2019-09-22 17:17:38 +02:00
Samuel Štancl
7229691977 Add comments 2019-09-21 23:53:23 +02:00
Samuel Štancl
8dae2dcc6f Fix db_name_is_prefixed test 2019-09-21 19:37:19 +02:00
Samuel Štancl
665d222872 Fix redirect macro test 2019-09-21 19:29:06 +02:00
Samuel Štancl
6134c8113b asset() tenancy 2019-09-21 16:06:08 +02:00
Samuel Štancl
74aead2a60 Add test for tenancy.database.based_on null 2019-09-21 14:06:42 +02:00
Samuel Štancl
cd53ff120d Fix tests 2019-09-21 12:04:25 +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
65b2c6ceee Null connection test 2019-09-20 16:57:53 +02:00
Samuel Štancl
2cf2ef0995 Configurable table names 2019-09-20 16:37:40 +02:00
Samuel Štancl
12c05c0af6 Fix some tests 2019-09-18 19:48:15 +02:00
Samuel Štancl
524530c8d5 TenantDatabaseManagerTest fully passes now 2019-09-17 18:57:19 +02:00
Samuel Štancl
79f912384b uuid -> id (references in code) 2019-09-15 22:52:31 +02:00
Samuel Štancl
a7bb709bd4 Fix first test 2019-09-15 21:53:03 +02:00
Samuel Štancl
c65b6839ff Tenant-specific connections, some work to get tests running 2019-09-15 17:44:26 +02:00
Samuel Štancl
04b4e0644f WIP DatabaseManager 2019-09-08 13:46:07 +02:00
Samuel Štancl
adc1b26243 features config 2019-09-08 11:48:21 +02:00
Samuel Štancl
0ac7fb74d6 wip 2019-09-07 16:40:45 +02:00
Samuel Štancl
d3712dfacc Events 2019-09-07 16:11:38 +02:00
stancl
73124cd801 Apply fixes from StyleCI 2019-09-06 16:52:16 +00:00
Samuel Štancl
f04ca349bd Tenant contract, Tenancy bootstrappers, drop predis 2019-09-06 18:51:34 +02:00
Samuel Štancl
41d8bb7e09 DatabaseManager WIP 2019-09-05 19:26:29 +02:00
Samuel Štancl
2fd3662eb7
[1.8.0] Use strict types (#115)
* Use strict types

* Apply fixes from StyleCI

* Fix str_repeat

* Fix false json decode
2019-08-23 18:18:26 +02:00
Samuel Štancl
1d10ac76f5
[1.8.0] Add more comments to the config file (#109) 2019-08-21 21:16:00 +02:00
Samuel Štancl
f590e2ce2a
[1.8.0] Custom id scheme (#108)
* Add UniqueIdentifierGenerators

* Apply fixes from StyleCI
2019-08-21 20:29:53 +02:00
Samuel Štancl
47fb158b59 Use MySQL by default; create migrations/tenant in tenancy:install 2019-08-17 16:33:22 +02:00
Samuel Štancl
9df78eb9c2
[1.7.0] Add DB storage driver (#82) 2019-08-16 14:36:49 +02:00
Renamed from src/config/tenancy.php (Browse further)