Skip to content

Allow manual execution of migrations #1

@occash

Description

@occash

I’d like to have more control over how and when database migrations are executed.

Currently, migrations run automatically when a connection is created. However, in some cases I need to:

  • Run migrations manually at a specific time.
  • Include custom business logic within migrations that can only be done in Swift code.

It would be great to have an API similar to GRDB (with an upTo argument in the migrate() function) or SQLDelight (newVersion and callback arguments), where migrations can be run step-by-step.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions