LocalMigrationArtifact class
Describes a migration artifact loaded from disk.
Constructors
-
LocalMigrationArtifact({required String name, required String directoryPath, required String beforeSchema, required String afterSchema, required String migrationSql, required List<
String> warnings, required int statementCount, required bool rebuildRequired, required String checksum}) -
Creates a local migration artifact descriptor.
const
Properties
- afterSchema → String
-
Schema snapshot after the migration.
final
- beforeSchema → String
-
Schema snapshot before the migration.
final
- checksum → String
-
Content checksum used for drift detection.
final
- directoryPath → String
-
Absolute path to the artifact directory.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- migrationSql → String
-
SQL statements stored in
migration.sql.final - name → String
-
Directory name used as the migration identifier.
final
- rebuildRequired → bool
-
Whether the artifact represents a rebuild migration.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statementCount → int
-
Statement count declared in metadata or derived from the script.
final
-
warnings
→ List<
String> -
Warning lines associated with the migration.
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