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.

Functions

f
runMigrations(db: DatabaseSync): void

Applies each migration db hasn't recorded yet, in order, each in its own transaction.