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

21 commits

Author SHA1 Message Date
Samuel Štancl
349125c02e
Merge hotfix branch (#834)
* try specifying the signature in __construct

* constructor doesn't work since Reflection is used, try specifying getDefaultName() instead

* Fixed: make migration commands compatible

* Fix failing tests

* Fix username generation

* Re-create tmp dir as well if needed

* wip
2022-03-30 18:00:55 +02:00
sort72
08bfd6f9bb
Use tenant key on console commands instead of id (#768) 2021-12-25 15:24:34 +01:00
Samuel Štancl
579779b88b Move DatabaseManager 2020-05-30 15:38:29 +02:00
Samuel Štancl
78c64f0425 Rolling back & deleting DB events 2020-05-24 20:52:50 +02:00
stancl
6955512a6b Apply fixes from StyleCI 2020-05-22 09:01:31 +00:00
Samuel Štancl
4f8d892481 Remove obsolete files, restructure 2020-05-21 15:54:35 +02:00
Samuel Štancl
c32f229dd5 Refactor more old code and get tests to pass 2020-05-13 04:51:37 +02:00
Samuel Štancl
89936187ce Rewrite old tests 2020-05-12 23:22:40 +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
Samuel Štancl
7389f44de9
[2.2.0] Use Tenant Run in console commands (#205)
* Utilize Tenant Run in commands

* Apply fixes from StyleCI
2019-10-27 20:50:49 +01:00
Samuel Štancl
f77a929113 getDatabaseName() -> getConnectionName() 2019-10-04 21:31:21 +02:00
Samuel Štancl
ede2dc23c6 Use correct DB connections in Migrate, Rollback & Seed commands 2019-10-04 21:22:47 +02:00
Samuel Štancl
553b162930 Clean endTenancy() calls at the end of commands 2019-09-27 22:57:10 +02:00
Samuel Štancl
1532ccf019 Fix some tests 2019-09-16 16:57:55 +02:00
Samuel Štancl
79f912384b uuid -> id (references in code) 2019-09-15 22:52:31 +02:00
Samuel Štancl
1bfe4a7ea5
Apply fixes from StyleCI (#126) 2019-09-11 17:37:02 +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
a3f37b7f77 Fix #71 2019-07-25 23:26:36 +02:00
Samuel Štancl
e1def355f9 Add command tests 2019-02-09 11:53:48 +01:00
Samuel Štancl
33fcb8a936 Cleanup commands 2019-02-09 00:40:52 +01:00
Samuel Štancl
deb3ad77f5 Initial commit 2019-01-17 22:24:12 +01:00