Memo::Migration
Converts a database written by an earlier version of memo, once. The version a database is at is kept in memo_meta.
Constants
SCHEMA_VERSION = 1
1 (memo 0.13): each distinct text is stored once, in memo_contents, and sources and chunks point at it. Databases from before have no version.
Instance methods
Runs in one transaction, so a failure leaves the database as it was. A second process opening the database meanwhile waits for it.