Guides
Running Migrations

Running migrations

Migrations will automatically be run when you call sidetrack.start(). The migrations creates a sidetrack_job table in your database, under the sidetrack schema.

If you want to manually run the migrations, call runMigrations with your database connection string.

ts
import { runMigrations } from "sidetrack";
 
await runMigrations(process.env["DATABASE_URL"]!);
ts
import { runMigrations } from "sidetrack";
 
await runMigrations(process.env["DATABASE_URL"]!);