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 9 months ago • 1 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