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";awaitrunMigrations (process .env ["DATABASE_URL"]!);
ts
import {runMigrations } from "sidetrack";awaitrunMigrations (process .env ["DATABASE_URL"]!);