Releases: iamsauravsharma/sqlx_migrator
Releases · iamsauravsharma/sqlx_migrator
v0.16.1
[0.16.1] - 2024-10-25
Bug Fixes
- Plan was not determined correctly for virtual migration
Documentation
- Improve docs for virtual migration
Miscellaneous Tasks
- Add example for referencing complex migration in another migration using virtual migration
- Update version to 0.16.1
Ci
- Create sqlite file for testing instead of memory
v0.16.0
[0.16.0] - 2024-10-15
Miscellaneous Tasks
- Update version to 0.16.0
Refactor
- [breaking] Remove support for state from operation
- [breaking] For macro make migration name required do not generate from file name
- Reexport some common struct and trait
- Replace qualified path
sqlx::Database
with use
v0.15.0
[0.15.0] - 2024-08-19
Documentation
- Improve readme
- Improve docs of migration and operation
Features
- Update sqlx to version 0.8.0
Miscellaneous Tasks
- Update version to 0.15.0
Refactor
- [breaking] Use consistent function order where connection is present
- [breaking] Do not export sqlx from crate
- Simplify related migration determination
- Consolidate multiple plan error to single error variant
Ci
- Update github workflows action version
v0.14.0
[0.14.0] - 2024-03-28
Bug Fixes
- Grand child for replace children may not be added properly
- Two migration depends upon each other are not handled properly
Features
- Add support for virtual migration
Miscellaneous Tasks
- Update version to 0.14.0
Refactor
- Handle parent, replace and run before during add migration directly
- Ignore parents, replaces and run before for virtual migration
Testing
- Test for child applied and grand children applied
- Add virtual migration to a example
v0.13.0
[0.13.0] - 2024-03-20
Bug Fixes
- Handle replace and run before correctly
- Adding migration will not add run before migration implicitly
- Add replace children parent before adding replace migration
- Check child run before before adding migration to list
- Not only root but any parent migrations replace can be applied
Documentation
- Improve docs for cli and migration trait
- Fix cli docs
- Only show top level example if certain feature is enabled
Features
- [breaking] Directly add support for count to plan
- [breaking] Consolidate apply and revert function to single run function
- While listing migration also list replaced migration is same list
- Add support for state in up and down operation
- While applying or reverting till migration do minimal migration
- For determining related migration support with list
- Check if migration is empty before displaying table in cli
Miscellaneous Tasks
- Apply some clippy suggestions
- Update version to 0.13.0
Refactor
- [breaking] Pass reference of plan instead of owned and make tracing compulsory
- [breaking] Make plan type private
- [breaking] Use vec instead of hash set for consistent migration plan
- Convert nested if to one single if statement
- Make migrator new function as public
- Filter map to only filter for with list
- Apply clippy suggestions
Testing
- Add some test for generate migration plan
Ci
- Test drop subcommand also at last
v0.12.0
[0.12.0] - 2024-02-21
For migrating from version 0.11.1 or greater before updating to this version rename table to _sqlx_migrator_migrations
from _sqlx_migration_migrations
directly on database
Bug Fixes
- Default table name was wrong
Miscellaneous Tasks
- Update version to 0.12.0
v0.11.5
[0.11.5] - 2024-02-21 (YANKED due to breaking change on v0.11.1)
Features
- Support expr instead of only supporting literal for some macros
Miscellaneous Tasks
- Update version to 0.11.5
v0.11.4
[0.11.4] - 2024-02-21 (YANKED due to breaking change on v0.11.1)
Bug Fixes
- Sqlx was not imported fully on macros
Miscellaneous Tasks
- Update version to 0.11.4
v0.11.3
[0.11.3] - 2024-02-21 (YANKED due to breaking change on v0.11.1)
Features
- Add some macros for help in creation of migration and operation
Miscellaneous Tasks
- Update version to 0.11.3
v0.11.2
[0.11.2] - 2024-01-28 (YANKED due to breaking change on v0.11.1)
Miscellaneous Tasks
- Update version to 0.11.2
Refactor
- Do not ask question if revert migrations len is 0