function up
up(db: DatabaseSync): void

Run once by runMigrations. Existing dumps start in no category, and a database made from schema.sql already has both tables.

Parameters

db: DatabaseSync

Return Type

void

Usage

import { up } from "api/db/migrations/0006_categories.ts";