migrations property

Map<int, Future<void> Function()> migrations
getter/setter pair

Versioned migrations, run when the database opens: each step n above the database version (PRAGMA user_version) runs once, in increasing order, in its own transaction, which then sets the version to n. The DataAccess methods called inside a step take part in its transaction. A failing step is rolled back and makes the opening fail. Set them before the first access.

Implementation

Map<int, Future<void> Function()> migrations =
    <int, Future<void> Function()>{};