Migration class final

A reviewed migration saved as Dart source, independent of application types.

steps contains SQL for exactly engine. snapshot describes the complete managed schema after applying it. Construction checks reviewedFingerprint; editing SQL or schema requires a new migration, never a revised fingerprint on an already applied definition. Collections are copied and frozen.

Constructors

Migration({required int version, required String name, required Engine engine, required List<String> steps, required SchemaSnapshot snapshot, required String reviewedFingerprint})

Properties

engine → Engine
final
fingerprint → String
SHA-256 over version, name, engine, SQL and every frozen schema property.
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
final
reviewedFingerprint → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snapshot → SchemaSnapshot
final
steps → List<String>
final
version → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited