Skip to main content

QSchemaChange

@quik/database


@quik/database / QSchemaChange

Type Alias: QSchemaChange

QSchemaChange = { columns: Record<string, QColumnOptions>; kind: "createTable"; table: string; } | { columns: Record<string, QColumnOptions>; kind: "dropTable"; table: string; } | { column: QColumnOptions; field: string; kind: "addColumn"; table: string; } | { column: QColumnOptions; field: string; kind: "dropColumn"; table: string; } | { column: QColumnOptions; field: string; kind: "alterColumn"; previousColumn: QColumnOptions; table: string; }

Defined in: database/src/migrations/snapshot/types.ts:24

A single detected difference between two schema snapshots.