function runMigrations runMigrations(db: DatabaseSync): void Applies each migration db hasn't recorded yet, in order, each in its own transaction. Parameters db: DatabaseSync Return Type void Throws Error When a migration fails. That one is rolled back, the later ones don't run, and the server doesn't start.