Releases: py-package/masonite-multitenancy
Releases · py-package/masonite-multitenancy
0.0.5
What's Changed
- Added
Tenancy
Facade - Tenancy now uses Facade for managing connections
- Added
TenantContext
, now you can change the connection on the fly
from multitenancy.contexts import TenantContext
from multitenancy.models.Tenant import Tenant
tenant = Tenant.where('name', '=', 'tenant1').first()
with TenantContext(tenant=tenant) as ctx:
# do whatever you like in tenant
# ...
# migrate the database
ctx.migrate()
ctx.migrate_refresh()
ctx.migrate_rollback()
ctx.migrate_reset()
ctx.migrate_status()
# seed the database
ctx.seed()
- Other minor enhancements and bug fixes
Full Changelog: 0.0.4...0.0.5
0.0.4
What's Changed
- Hotfix/connection by @yubarajshrestha in #4
New Contributors
- @yubarajshrestha made their first contribution in #4
Full Changelog: 0.0.3...0.0.4
0.0.3
What's Changed
- Bump actions/checkout from 2 to 3 by @dependabot in #1
- Bump actions/setup-python from 2 to 4 by @dependabot in #2
- Bump codecov/codecov-action from 2 to 3 by @dependabot in #3
New Contributors
- @dependabot made their first contribution in #1
Full Changelog: 0.0.2...0.0.3
0.0.2
Full Changelog: 0.0.1...0.0.2