]> Untitled Git - bdk/commit
Sqlite migrations should either succeed or fail
authorVladimir Fomene <vladimirfomene@gmail.com>
Thu, 1 Sep 2022 10:27:09 +0000 (13:27 +0300)
committerVladimir Fomene <vladimirfomene@gmail.com>
Fri, 16 Sep 2022 16:03:56 +0000 (19:03 +0300)
commit54d768412abf218d2646aba211bb79b9dd287118
treefcce578d7bce070128008138325a19168f421d98
parent369e17b8012df56587c10cd9ce6651908d6a4be9
Sqlite migrations should either succeed or fail

The current implementation of the `migrate` method for
Sqlite database does not rollback changes when there is
an error while running one of the migration scripts. This
can leave the database in an inconsistent state. This
change ensures that migrations either succeed completely
or fail.
src/database/sqlite.rs