plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

tauri-plugin-sql: How to use "Down" migrations?

Open Unit2795 opened this issue 1 year ago • 6 comments

In the SQL plugin, how do I run the "Down" migrations? What are all of the situations in which these will be ran (uninstall, manually, etc)?

For example:

Migration {
    version: 2,
    description: "drop_service_table",
    sql: "DROP TABLE service",
    kind: MigrationKind::Down,
}

Unit2795 avatar May 19 '24 22:05 Unit2795

Also wondering this. Applying migrations is documented, but rolling them back does not seem to be.

rkofman avatar Sep 27 '24 05:09 rkofman