Skip to content

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

Open
@Unit2795

Description

@Unit2795

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,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions