Releases: iamsauravsharma/sqlx_migrator
Releases · iamsauravsharma/sqlx_migrator
v0.18.0
[0.18.0] - 2025-07-23
Bug Fixes
- Schema name not handled properly when starting with number
Documentation
- Improve prefix docs and error docs for non alphanumeric ascii
- Improve docs for migrating from sql to rust based migration
Features
- Add support for schema when setting table name
- Add support to sync from old migrator to sqlx migrator
Miscellaneous Tasks
- Update version to 0.18.0
Refactor
- Update to edition 2024
v0.17.0
[0.17.0] - 2025-03-08
Bug Fixes
- Lock was not unlocked if migrations run return error
- [breaking] Do not allow non empty virtual migration addition
Documentation
- Fix missing self in down migration example of readme
- Add note to what to do when connection needs to be used multiple times
- Add example for migrator creation and with prefix
Features
- [breaking] If migrations are inconsistent when added multiple time raises error
Miscellaneous Tasks
- Remove unused dependencies warning from examples
- Update version to 0.17.0
Refactor
- [breaking] Only allow literal for app name and migration name
- Remove meaningless async_trait for Migration
- Apply clippy suggestion to use contains
v0.16.2
[0.16.2] - 2025-01-11
Documentation
- Improve docs by adding links
Features
- Support fake plan creation using library
Miscellaneous Tasks
- Update version to 0.16.2
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::Databasewith 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