View Source Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
unreleased
[Unreleased]
0-4-0
[0.4.0]
changed
Changed
Versioned.Multifunctions now return the main record with the very same name given. (Previously, it was coerced into a string and appended with "_record".)Versioned.Multifunctions now accept functions to more closely match theEcto.MultiAPI.
0-3-3-2022-01-20
[0.3.3] - 2022-01-20
added
Added
Versioned.insert!/2,Versioned.update!/2andVersioned.delete!/2for better mimickingEcto.Repo.
0-3-2-2021-12-09
[0.3.2] - 2021-12-09
changed-1
Changed
- Fix for
add_versioned_column/4. - Better clarity and bugfixes around the fact that there should be no foreign
key constraints in the versions tables. If you are using this library in
production, you should be aware that your versions tables may have foreign key
constraints where they were not intended. If you have any foreign keys in your
versions tables, use something like the following for each in a new
change/0migration function to get back on track.
execute(
"ALTER TABLE cars_versions DROP CONSTRAINT cars_versions_garage_id_fkey;",
"ALTER TABLE cars_versions ADD CONSTRAINT cars_versions_garage_id_fkey FOREIGN KEY (garage_id) REFERENCES garages(id);"
)
0-3-1-2021-12-08
[0.3.1] - 2021-12-08
added-1
Added
Versioned.Migration.rename_versioned_table
changed-2
Changed
- Fixed
Versioned.Migration.remove_versioned_column.
0-3-0-2021-11-29
[0.3.0] - 2021-11-29
added-2
Added
Versioned.get_by/2Versioned.one/2Versioned.Multinow exposes operations forEcto.Multitransactions.Ecto.Schema.versionmacro for writing code to the auto-generated ".Version" module.
changed-3
Changed
Versioned.get/2is now a direct proxy for yourMyApp.Repo.get/2.
0-2-1-2021-09-04
[0.2.1] - 2021-09-04
added-3
Added
Versioned.add_version_id/1fills the:version_idof a versioned struct.:version_fieldsoption forversioned_object/3macro.Versioned.Migration.modify_versioned_column/4.Versioned.Migration.rename_versioned_column/3.Versioned.Migration.remove_versioned_column/2.
0-2-0-2021-07-26
[0.2.0] - 2021-07-26
added-4
Added
- Base schema now has
has_many :versions - Version schema swapped its simple
:entity_idfield for abelongs_towhich achieves the same, plus adding the:entityfield and the ability to query with the assoc. - Added
Versioned.Absinthe.versioned_object/2absinthe helper which creates the base object and the versioned one at the same time. - Added
Versioned.get_last/3which fetches the last version record in a history.
changed-4
Changed
Versioned.with_versionsbecameVersioned.with_version_id. I originally named the function incorrectly ;)
0-1-0-2021-07-15
[0.1.0] - 2021-07-15
added-5
Added
- Initial release