function up
up(db: DatabaseSync): void

Run once by runMigrations. Existing bound attachments get the type of the table that holds their resource; one whose resource is gone gets none, and the startup purge deletes it. A database made from schema.sql already has the column.

Parameters

db: DatabaseSync

Return Type

void

Usage

import { up } from "api/db/migrations/0018_attachment_resource_type.ts";