type alias SchemaRequirement

The schema objects a single migration is responsible for. Drives that migration's verify() so failures name exactly what the migration was meant to add or remove.

Properties

optional
newTables: string[]

Tables this migration creates (verified to have their full SCHEMA columns).

optional
columns: Record<string, string[]>

Columns this migration adds to already-existing tables.

optional
indexes: string[]

Indexes this migration creates.

optional
triggers: string[]

Triggers this migration creates.

optional
absentTables: string[]

Legacy tables this migration removes (must be absent afterwards).

Usage

import { type SchemaRequirement } from "doc.ts";