Programmatic Migrations
You can run migrations programmatically using the Hysteria ORM API. This is useful for custom workflows, CI/CD, or advanced automation.
Example Usage
import { defineMigrator } from "hysteria-orm";
const migrator = defineMigrator("database/migrations", {
/** sql options */
});
await migrator.up(); // Run all pending migrations
await migrator.down(); // Rollback all migrations
Next: Migration Templates