Adds categories, which admins create and posters file their dumps under, as the categories table and the dump_categories join table.

Functions

f
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.

Usage

import * as mod from "api/db/migrations/0006_categories.ts";