Skip to content

v1.2.0 - NonVersionedModel support

Choose a tag to compare

@burilovmikhail burilovmikhail released this 24 Dec 07:08
· 18 commits to main since this release
0a83654

warning: breaking change

  • If you use NonVersionedModel - pay attention, it's a different class now.
  • If you for any reason override default BaseRepository methods - make sure you use BaseModel, not VersionedModel in method definitions

Changes

  • Created new BaseModel class as the unversioned base class with entity_id and extra fields
  • VersionedModel now inherits from BaseModel, adding Big 6 versioning fields (version, previous_version, active, changed_by_id, changed_on)
  • NonVersionedModel is now an alias for BaseModel instead separate class
  • BaseRepository updated: handles both versioned and non-versioned models through inheritance