Migrator
The migration ledger and the migrations that fill it.
Every entry point takes a Tx, including the reading ones: applied ensures the ledger exists first, and creating a table is a write. Nothing here opens a scope of its own — a caller wraps the whole run in one transact, which is what makes a failed batch roll back including its ledger rows.
Attributes
- Source
- Migrator.scala
- Graph
-
- Supertypes
- Self type
-
Migrator.type
Members list
Type members
Classlikes
Attributes
- Companion
- trait
- Source
- Migrator.scala
- Supertypes
- Self type
-
Status.type
Value members
Concrete methods
Attributes
- Source
- Migrator.scala
Applies a batch. The transaction is the caller's: DESIGN §8.13 — this used to save and restore autocommit, commit and roll back for itself, which is exactly the work transact does.
Applies a batch. The transaction is the caller's: DESIGN §8.13 — this used to save and restore autocommit, commit and roll back for itself, which is exactly the work transact does.
Attributes
- Source
- Migrator.scala
Attributes
- Source
- Migrator.scala
Verifies every on-disk migration, and checks applied ones still match the ledger.
Verifies every on-disk migration, and checks applied ones still match the ledger.
Attributes
- Source
- Migrator.scala