Snodo.Extensions.Tasks.Store.SQLite.Migration.V2 (snodo_tasks_sqlite v0.2.0)

Copy Markdown View Source

Data-preserving SQLite upgrade from Tasks schema version one to two.

Version two adds the event commit-time lookup index used by operational ledger scans. Apply this module as its own application migration when upgrading an existing version-one installation.

Summary

Functions

Rolls schema version two back to one without deleting task data.

Upgrades a version-one schema without rewriting task or event rows.

Functions

current_version()

@spec current_version() :: pos_integer()

down()

Rolls schema version two back to one without deleting task data.

up()

Upgrades a version-one schema without rewriting task or event rows.