Brings the database up to date with the migrations under migrations/, and
records each one it applies in schema_migrations. connection.ts runs it
each time the server opens the database.
f
runMigrations(db: DatabaseSync): void
Applies each migration db hasn't recorded yet, in order, each in its own
transaction.
Usage
import * as mod from "api/db/migrate.ts";