Rewrite existing DB-migrations to use the new `SchemaMigration` base class.

Closes #296.