Skip to content
🚀 This documentation is for unreal-orm 1.0.0 alpha which requires SurrealDB 2.0 alpha SDK. For the stable version, see npm.

SchemaChange

Defined in: schema/ast/compare.ts:36

Represents a single schema change between source and target.

description: string

Defined in: schema/ast/compare.ts:50

Human-readable description


optional field: string

Defined in: schema/ast/compare.ts:42

Field name (for field changes)


optional index: string

Defined in: schema/ast/compare.ts:44

Index name (for index changes)


optional newValue: unknown

Defined in: schema/ast/compare.ts:48

New value (for additions/modifications)


optional oldValue: unknown

Defined in: schema/ast/compare.ts:46

Previous value (for modifications/removals)


table: string

Defined in: schema/ast/compare.ts:40

Table name affected


type: ChangeType

Defined in: schema/ast/compare.ts:38

Type of change