DatabaseMigration class

Database Migration

Implemented types

Constructors

DatabaseMigration({required String $id, required String $createdAt, required String $updatedAt, required String projectId, required String databaseId, required String specification, required String phase, required int attempt, required String lastError, required int lagDocuments, required String verifiedAt, required String cutoverAt, required String soakUntil, required bool autoCutover, required bool cutoverRequested, required bool paused})
DatabaseMigration.fromMap(Map<String, dynamic> map)
factory

Properties

$createdAt String
Migration creation time in ISO 8601 format.
final
$id String
Database migration ID.
final
$updatedAt String
Migration update time in ISO 8601 format.
final
attempt int
Number of times a migration step has failed and been recorded.
final
autoCutover bool
Whether the migration cuts over automatically once ready. Set when the migration is created and never changed afterwards, so it always reports what was asked for.
final
cutoverAt String
Time routing was flipped to the target in ISO 8601 format.
final
cutoverRequested bool
Whether a cutover has been requested and not yet attempted. Set by the cutover endpoint and cleared when the attempt is made, so a cutover that fails a check parks the migration again rather than retrying on its own.
final
databaseId String
Logical database ID being migrated.
final
hashCode int
The hash code for this object.
no setterinherited
lagDocuments int
Number of documents still pending replication to the target.
final
lastError String
Reason the most recent migration step failed, empty while none has.
final
paused bool
Whether the migration is paused.
final
phase String
Migration phase. Possible values: pending, provisioned, capturing, backfilling, catching_up, verifying, ready_to_cutover, cutover, soaking, done, failed, rolled_back.
final
projectId String
Project ID that owns the migrating database.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
soakUntil String
Time the post-cutover soak window ends in ISO 8601 format.
final
specification String
Dedicated compute specification provisioned for the migration target.
final
verifiedAt String
Time the migrated data was verified against the source in ISO 8601 format.
final

Methods

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

Operators

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