Releases: bartventer/gorm-multitenancy
Releases · bartventer/gorm-multitenancy
v5.3.0
v5.2.1
v5.2.0
v5.1.2
v5.1.1
v5.1.0
v5.0.0
5.0.0 (2024-02-21)
Code Refactoring
- postgres: modify SetSearchPath function in schema/postgres (872730a)
- scopes: modify WithTenantSchema function in scopes/scopes.go (22c38ef)
Features
- package: upgrade from v4 to v5 (a90944f)
BREAKING CHANGES
- package: The upgrade from v4 to v5 introduces changes that are not backward compatible. Please refer to the documentation for more details.
- scopes: The WithTenantSchema function in scopes/scopes.go no longer sets the tenant in context. This change may affect the behavior of any code that relies on the tenant being set in the context after calling this function.
- postgres: The SetSearchPath function in schema/postgres/postgres.go no longer sets the tenant in context. The function signature has also been changed to return (*gorm.DB, ResetSearchPath) instead of (*gorm.DB, ResetSearchPath, error).
v4.0.0
4.0.0 (2024-02-19)
Bug Fixes
- remove deprecated types and variables (7017cca)
Features
- module: update module version to v4 and import paths (0da75e7)
- align logger with gorm default logger (87655c7)
- change SetSearchPath function signature (47b145d)
- update newMultitenancyConfig error handling (9069f87)
- update WithTenantSchema scope to set tenant in context (ec758cb)
BREAKING CHANGES
- module: The module version and import paths have been updated to v4.
This change requires updating all import statements to use the new version. - The function signature now returns a gorm db connection, the cleanup function and an error if any.