Skip to content

Releases: iamsauravsharma/sqlx_migrator

v0.14.0

28 Mar 10:09
5ea5578
Compare
Choose a tag to compare

[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

20 Mar 05:57
f9a0703
Compare
Choose a tag to compare

[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

21 Feb 14:52
876a9f9
Compare
Choose a tag to compare

[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

21 Feb 11:23
38522e7
Compare
Choose a tag to compare

[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

21 Feb 10:59
d28a9cb
Compare
Choose a tag to compare

[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

21 Feb 10:52
96d1c7b
Compare
Choose a tag to compare

[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

28 Jan 09:14
2214d17
Compare
Choose a tag to compare

[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

v0.11.1

23 Jan 14:41
f1b0858
Compare
Choose a tag to compare

[0.11.1] - 2024-01-23 (YANKED due to breaking change on v0.11.1)

Bug Fixes

  • Support sqlite for any db lock and unlock operation

Miscellaneous Tasks

  • Update version to 0.11.1

Refactor

  • Use tracing level debug for tracing operations

v0.11.0

06 Jan 13:50
c248b22
Compare
Choose a tag to compare

[0.11.0] - 2024-01-06 (YANKED due to breaking change on v0.11.1)

Since v0.11.1 was released nearly 1 month ago yanking only 0.11.1 and greater will break old code working for 1 month this version is also yanked to be on secure side and so no working version breaks

Features

  • [breaking] Direcly provides MigrationCommand to create cli

Miscellaneous Tasks

  • Update version to 0.11.0

Refactor

  • Remove trait bound from strut and impl where possible

v0.10.0

24 Nov 11:46
72a9582
Compare
Choose a tag to compare

[0.10.0] - 2023-11-24

Documentation

  • Update command docs
  • Update command docs to mention app and migration combination

Features

  • Use sqlite memory database for build workflow
  • Ask before reverting migration on cli
  • Add support for destructible operation
  • Move some error enum to feature gate
  • Support count for apply and revert

Miscellaneous Tasks

  • Only support serde upto 1.0.171
  • Update version to 0.10.0

Refactor

  • Only provide table name when feature is enabled

Build

  • Run rustdoc with all features
  • Move lints to Cargo.toml

Ci

  • Improve example run using makefile
  • Fix typo for mysql example run