SchemaChange
Defined in: schema/ast/compare.ts:36
Represents a single schema change between source and target.
Properties
Section titled “Properties”description
Section titled “description”description:
string
Defined in: schema/ast/compare.ts:50
Human-readable description
field?
Section titled “field?”
optionalfield:string
Defined in: schema/ast/compare.ts:42
Field name (for field changes)
index?
Section titled “index?”
optionalindex:string
Defined in: schema/ast/compare.ts:44
Index name (for index changes)
newValue?
Section titled “newValue?”
optionalnewValue:unknown
Defined in: schema/ast/compare.ts:48
New value (for additions/modifications)
oldValue?
Section titled “oldValue?”
optionaloldValue: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