lukinovec
99bb28a16b
Merge branches 'storage-url-conflict-resolution' and 'master' of https://github.com/archtechx/tenancy into storage-url-conflict-resolution
2022-09-22 14:14:09 +02:00
lukinovec
9206dafd28
Merge branch 'master' into storage-url-conflict-resolution
2022-09-22 14:04:14 +02:00
lukinovec
ab5fa7a247
[4.x] Optionally delete storage after tenant deletion ( #938 )
...
* Add test for deleting storage after tenant deletion
* Save `storage_path()` in a variable after initializing tenant in test
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
* Add DeleteTenantStorage listener
* Update test name
* Remove storage deletion config key
* Remove tenant storage deletion events
* Move tenant storage deletion to the DeletingTenant event
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-09-20 19:42:00 +02:00
lukinovec
3c7535a0d6
Improve url_override comment, add todos
2022-08-29 08:50:02 +02:00
Samuel Štancl
40bf28c7d0
general refactor, move more classes under Database namespace
2022-08-27 03:17:16 +02:00
lukinovec
f2d562cd8b
Update url_override comments
2022-08-24 12:57:29 +02:00
lukinovec
428bce896a
Update config comments
2022-07-28 10:16:55 +02:00
lukinovec
8aff44215d
Merge branch 'master' of https://github.com/archtechx/tenancy into storage-url-conflict-resolution + migrate tests to Pest
2022-07-27 10:54:08 +02:00
Abrar Ahmad
627233d07a
[4.x] Don't use onDeleteCascade in the migrations ( #883 )
...
* removed `cascade` on delete for domains
* removed only `onDelete` cascade
* keep impersonation migrations unchanged
* domains set null on delete
* Update 2019_09_15_000020_create_domains_table.php
* Added DeleteDomain Job while deleting tenant.
* Update assets/TenancyServiceProvider.stub.php
Co-authored-by: Samuel Štancl <samuel@archte.ch>
* renamed class
* Update DeleteDomains.php
* onDelete restrict
* revert nullable
* removed `shouldQueue` interface
* Update TenancyServiceProvider.stub.php
* fetch and delete domains individually
* Update DeleteDomains.php
* tests for `DeleteDomains` job
Co-authored-by: Samuel Štancl <samuel@archte.ch>
2022-07-20 13:02:33 +02:00
Nick Kitchen
cc6d4fe0dd
[4.x] Added support for Microsoft Sql Server ( #715 )
...
* added support for microsoft sql server database
* added support for microsoft sql server database
* trigger ci
* revert change
* trigger ci
* Try installing pdo_sqlsrv
* different approach for installing sqlsrv via pecl
* add dependencies
* add gnupg2
* Update Dockerfile
* try skipping msodbcsql17
* Update Dockerfile
* add dependency back
* update before installing
* try to add mssql
* mssql host
* TENANCY_TEST_MSSQL_HOST env var
* add env vars for mssql
* add sqlsrv vars to TestCase
* rename vars to SQLSRV [skip ci]
* MSSQL -> SQLSRV
Co-authored-by: Samuel Štancl <samuel@archte.ch>
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2022-06-23 13:04:53 +02:00
Samuel Štancl
96d9ad13d8
Add a note about 'tenant' connection being reserved ( fixes #774 )
2022-01-06 16:57:01 +01:00
Martin Vlček
5ed5aea6d6
Fixed Link command for Laravel v6, added StorageLink Events, more StorageLink tests, added RemoveStorageSymlinks Job, added Storage Jobs to TenancyServiceProvider stub, renamed misleading config example.
2021-09-14 13:52:53 +02:00
Samuel Štancl
717b834c51
Trigger CI build
2021-09-09 13:57:32 +02:00
Martin Vlcek
adf3daa022
This adds support for tenancy aware Storage::url() method
2021-07-19 22:38:33 +00:00
Roelof Roos
1a5300ab4f
Fix array_unique causing problems in TenancyServiceProvider stub ( #672 )
...
Closes #661
2021-06-15 20:43:53 +02:00
stancl
54a33f93a8
Apply fixes from StyleCI
2021-04-22 09:09:22 +00:00
hackerESQ
740d670665
Adds ability to disable tenant asset routes ( #636 )
...
* Add option to enable/disable tenant asset route
* Only registers tenant route if enabled in config
* Uses proper config key
* Move routes config option
* Move config to service provider
* Moves config to service provider
2021-04-22 11:09:16 +02:00
stancl
0d14911538
Apply fixes from StyleCI
2021-04-16 17:57:51 +00:00
stancl
27fd2e7951
Apply fixes from StyleCI
2020-12-14 12:12:13 +00:00
Samuel Štancl
1fbe9cf3e2
Fix #562
2020-12-14 13:12:03 +01:00
Andrei Ioniță
bb5baced2a
Update config links to v3 docs ( #486 )
2020-09-01 12:38:25 +02:00
bepsvpt
1ff82fb2a0
reverse middlewares order before prepend ( #479 )
2020-08-18 16:02:26 +02:00
Samuel Stancl
ba52bfa710
Formatting
2020-06-23 13:49:46 +02:00
Samuel Štancl
616c5983a4
Use default DB connection for central
2020-06-05 21:03:55 +02:00
Samuel Štancl
0378f142ec
Minor changes
2020-06-03 13:32:35 +02:00
Samuel Štancl
da23662d7b
Clenup for resource syncing
2020-06-01 09:51:22 +02:00
stancl
a0192a941e
Apply fixes from StyleCI
2020-05-30 15:01:29 +00:00
Samuel Štancl
6788deca56
Drop keys for bootstrappers
2020-05-30 17:01:18 +02:00
Samuel Štancl
43d75cdd38
Fix tenants:list
2020-05-29 09:33:49 +02:00
Samuel Štancl
ed200ab733
Universal routes
2020-05-26 13:25:24 +02:00
stancl
3cce4f200c
Apply fixes from StyleCI
2020-05-24 19:11:01 +00:00
Samuel Štancl
5eeba43796
Move tenant routes file
2020-05-24 21:10:50 +02:00
stancl
1a85bca7ee
Apply fixes from StyleCI
2020-05-24 18:40:24 +00:00
Samuel Štancl
2839f45196
Refactor models & config
2020-05-24 20:40:10 +02:00
stancl
6955512a6b
Apply fixes from StyleCI
2020-05-22 09:01:31 +00:00
Samuel Štancl
2c1cc41b97
Telescope tags
2020-05-21 18:05:02 +02:00
Samuel Štancl
33d6fd82da
-ing event behavior
2020-05-21 17:55:48 +02:00
Samuel Štancl
4f8d892481
Remove obsolete files, restructure
2020-05-21 15:54:35 +02:00
Samuel Štancl
fbe43fbb04
Restructure config
2020-05-21 15:05:05 +02:00
Samuel Štancl
15a7e52208
Get rid of tenant DB manager connection config
2020-05-21 14:47:29 +02:00
Samuel Štancl
e6e4548a22
Use % for CREATE % GRANT queries
2020-05-20 14:33:24 +02:00
Samuel Štancl
1329356b4b
Refactor stub provider, add middleware priority logic
2020-05-19 16:36:15 +02:00
Samuel Štancl
b87c0bc9d2
Add more events
2020-05-17 17:42:09 +02:00
Samuel Štancl
0508429e0f
Fix asset publishing
2020-05-17 15:14:05 +02:00
Samuel Štancl
7a7200fd25
Minor fixes for using the package in an app
2020-05-16 11:56:32 +02:00
Samuel Štancl
1833622170
Extract JobPipelines to a separate package
2020-05-15 18:26:08 +02:00
Samuel Štancl
c8f9a82745
Cleanup after implementing impersonation
2020-05-15 07:39:19 +02:00
Samuel Štancl
10a5b80d44
User impersonation
2020-05-15 07:30:57 +02:00
Samuel Štancl
52476d6298
Use nullable data column instead of default value
2020-05-15 02:04:51 +02:00
Samuel Štancl
1a8d150f2c
Change bootstrappers namespace
2020-05-13 18:19:59 +02:00