Samuel Štancl
b7c8f1fba7
Shared users - complete
2020-05-12 01:54:02 +02:00
Samuel Štancl
6f4b9f486c
Bootstrapper tests
2020-05-11 03:37:47 +02:00
Samuel Štancl
73fc525126
Automatic mode
2020-05-10 23:47:11 +02:00
Samuel Štancl
3bb2759fe2
[3.x] DB users ( #382 )
...
* Initial draft
* Apply fixes from StyleCI
* Use CI on master branch too
* Pass correct argument to queued DB creators/deleters
* Apply fixes from StyleCI
* Remove new interface from MySQLDBManager
* Make phpunit run
* Apply fixes from StyleCI
* Fix static property
* Default databaseName
* Use database transactions for creating users & granting permissions
* Apply fixes from StyleCI
* Get old tests to pass
* Apply fixes from StyleCI
* Add tests for PermissionControlledMySQLDatabaseManager
* Apply fixes from StyleCI
* Write test for extra config, fix bug with extra config
* Apply fixes from StyleCI
2020-05-03 18:12:27 +02:00
Noor Adiana
d0023c482a
Add support for postgres schema ( #237 )
...
* Add support for postgres schema
* wip
* Apply fixes from StyleCI
* revert to db as default for pgsql
* Move separate_by to database
* Fixing testing
* Fixing style
* Reverted change
* Store string instead of Connection instance
* Remove use statement
* Add use statement for DB facade
* mysql -> pgsql
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
2020-03-10 20:15:07 +01:00
Samuel Štancl
95ee295da1
Fix PDO serialization exception ( #289 )
...
* Fix PDO serialization exception when queueing tenant creation
* Apply fixes from StyleCI
* Fix $this->database() calls
2020-02-10 16:04:40 +01:00
Samuel Štancl
fed8c0f9d1
[2.2.4] [WIP] Respect custom connections when creating database ( #244 )
...
* Add TenantDatabaseManager::setConnection()
* Apply fixes from StyleCI
2019-12-11 22:16:25 +01:00
Samuel Štancl
869ac32983
[2.2.0] [WIP] Add functionality ( #206 )
...
* TenantDatabaseDoesNotExistException
* Apply fixes from StyleCI
* User post-creation callbacks
* Rename method
* postCreationActions
* pass $tenant as parameter
* pass $tenant to async actions
* WIP findBy()
* findBy\* ForwardsCalls
* Apply fixes from StyleCI
* findBy DB storage driver
* Redis SD TODO message
* Apply fixes from StyleCI
* Fix chained jobs
* WIP event system
* import str
* instanceof closure check
* findBy instead of find
* Tenant -> Tenants
* dots
* Use DB hooks instead of a SC key
* Don't allow callables for queue chain
* CanDeleteKeys interface
* Apply fixes from StyleCI
* CanFindByAnyKey interface
* Apply fixes from StyleCI
* Ditch models for custom repositories
* Resolve circular dependency
* Apply fixes from StyleCI
* Fix tests
* Apply fixes from StyleCI
* FutureTest
* Prefix tenant events with 'tenant.'
* Event listener arguments test
2019-10-27 21:10:41 +01:00
Samuel Štancl
6fdc041f88
Don't purge centrail connections - fix issue caused by writing a regression test ( #192 )
2019-10-20 09:45:03 +02:00
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
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
ae6cf5c1ab
DB manager now doesn't depend on DB storage driver
2019-09-30 18:41:51 +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
c475e7a43d
Fix transactions
2019-09-21 13:54:02 +02:00
Samuel Štancl
a5a9f47eaa
Merge branch '2.x' of github.com:stancl/tenancy into 2.x
2019-09-21 12:04:33 +02:00
Samuel Štancl
cd53ff120d
Fix tests
2019-09-21 12:04:25 +02:00
stancl
2192905830
Apply fixes from StyleCI
2019-09-21 09:40:56 +00:00
Samuel Štancl
3cd97bdcab
Overwriting the connection doesn't matter, it just changes the DB
2019-09-21 11:39:31 +02:00
Samuel Štancl
ed308b1650
getBaseConnection
2019-09-21 11:39:17 +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
8565cc7acc
Get multiple envs (redis/db) to run correctly
2019-09-17 19:39:57 +02:00
Samuel Štancl
524530c8d5
TenantDatabaseManagerTest fully passes now
2019-09-17 18:57:19 +02:00
Samuel Štancl
7e645a3312
Fix event tests
2019-09-16 18:38:23 +02:00
Samuel Štancl
a9c37d1535
wip
2019-09-16 18:09:09 +02:00
Samuel Štancl
c65b6839ff
Tenant-specific connections, some work to get tests running
2019-09-15 17:44:26 +02:00
Samuel Štancl
15a7db9e71
Clean up TenantCannotBeCreatedException
2019-09-15 09:40:53 +02:00
stancl
7264ec05cb
Apply fixes from StyleCI
2019-09-11 17:28:01 +00:00
Samuel Štancl
ca30e861dc
Delete old Tenant & DB amnagers
2019-09-11 19:27:33 +02:00
Samuel Štancl
1bfe4a7ea5
Apply fixes from StyleCI ( #126 )
2019-09-11 17:37:02 +02:00
Samuel Štancl
4872197fb6
TenantManager storage
2019-09-08 17:18:31 +02:00
Samuel Štancl
72baa45126
Make TenantModel final
2019-09-04 16:57:19 +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
stancl
787063ed73
Apply fixes from StyleCI
2019-08-20 10:15:06 +00:00
Samuel Štancl
4c676b41e9
Custom exceptions, fix #91
2019-08-20 12:14:56 +02:00
Samuel Štancl
5edf582269
Make DB storage driver prefix sqlite DBs with database_path()
2019-08-17 21:56:30 +02:00
stancl
fd66537e7f
Apply fixes from StyleCI
2019-08-17 13:25:48 +00:00
Samuel Štancl
be077ae73c
Add the option to specify connection in DatabaseManager
2019-08-17 15:25:39 +02:00
Samuel Štancl
7bcad47186
Updated comment
2019-08-17 10:03:41 +02:00
stancl
84890cdd1e
Apply fixes from StyleCI
2019-08-16 16:21:59 +00:00
stancl
155ef0da5a
Apply fixes from StyleCI
2019-08-14 20:17:04 +00:00
Samuel Štancl
4aa35322da
Add event prevents, Tenant facade
2019-08-14 22:16:51 +02:00
Samuel Štancl
eceacd9422
Apply fixes from StyleCI ( #80 )
2019-08-02 20:01:10 +02:00
Samuel Štancl
b2e2460c34
Add PostgreSQL DB driver ( #52 )
2019-07-12 23:09:29 +02:00
Samuel Štancl
e7b5a77a6b
Data separation tests ( #58 )
...
* Add purge()
* Add DataSeparationTest
2019-07-01 12:28:22 +02:00
Samuel Štancl
97ec172fd4
Specify namespace on global functions ( fix #35 ) ( #36 )
...
* Specify namespace on global functions (fix #35 )
* merge
* Revert some \ additions
* small fixes
2019-04-24 17:33:41 +02:00
Samuel Štancl
e1def355f9
Add command tests
2019-02-09 11:53:48 +01:00
Samuel Štancl
15766a0037
Fix #21 ( #22 )
2019-02-08 20:16:40 +01:00
Samuel Štancl
c53a05cff4
Make database creation queueable ( #17 )
...
* SOLIDify database creation
* Return the result of fclose in SQLiteDBCreator
* Make database creation queueable
* Add DatabaseCreationTest
* Make comment more descriptive [ci skip]
* Add composer script to copy .env.example to .env
* Minor tweaks
* Fix env section
* Fix DB_PASSWORD for Travis
2019-02-07 18:12:24 +01:00
Samuel Štancl
6bb18a2b95
Fix Travis, add docs for generating HTTPS certificates ( #19 )
2019-02-07 15:26:42 +01:00