Skip to content

Storage: schema migrations & versioning (embed migrations) #8

@thenotespublisher

Description

@thenotespublisher

Impact: Hard to evolve schema safely; upgrade/downgrade risks for users.
No dedicated migration tool or embedded migrations visible.

i recommend

Add embedded migrations (use golang-migrate or pressly/goose) and run on startup with explicit migrate apply.

Store schema version in DB and fail fast if incompatible.
Snippet:
migrate -path ./migrations -database "sqlite3://path" up

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions