Skip to content

Releases: bartventer/gorm-multitenancy

v5.3.0

28 Mar 21:28
b0c4ccd
Compare
Choose a tag to compare

5.3.0 (2024-03-28)

Features

  • deps: bump gorm.io/gorm from 1.25.7 to 1.25.9 (#6) (b0c4ccd)

v5.2.1

27 Feb 02:16
Compare
Choose a tag to compare

5.2.1 (2024-02-27)

Bug Fixes

  • drivers/postgres: update docs and refactor logging (1ba10c1)

v5.2.0

22 Feb 07:42
Compare
Choose a tag to compare

5.2.0 (2024-02-22)

Features

  • dependencies: upgrade GORM and PostgreSQL driver (065de6d)
  • subdomain: modify ExtractSubdomain to return only first part (8134cfa)

v5.1.2

21 Feb 15:23
Compare
Choose a tag to compare

5.1.2 (2024-02-21)

Bug Fixes

  • dependencies: downgrade gorm.io and gorm Postgres driver version (225f725)

v5.1.1

21 Feb 14:48
Compare
Choose a tag to compare

5.1.1 (2024-02-21)

Bug Fixes

  • dependencies: downgrade gorm.io Postgres driver version (abafaba)

v5.1.0

21 Feb 13:17
133f1bf
Compare
Choose a tag to compare

5.1.0 (2024-02-21)

Features

v5.0.0

21 Feb 08:28
Compare
Choose a tag to compare

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

19 Feb 16:30
Compare
Choose a tag to compare

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.

v3.0.5

10 Feb 09:15
260426b
Compare
Choose a tag to compare

3.0.5 (2024-02-10)

Bug Fixes

  • update log info for DropSchemaForTenant (260426b)

v3.0.4

10 Feb 09:07
b6efb4d
Compare
Choose a tag to compare

3.0.4 (2024-02-10)

Bug Fixes

  • change CreateSchemaForTenant log info (b6efb4d)