MigrationSection class

Constructors

MigrationSection({required String directory, required String registry, required String ledgerTable, required String schemaDump, MigrationFormat format = MigrationFormat.dart})
Describes migrations metadata used for registry generation.
MigrationSection.fromMap(Map<String, Object?> map)
Reconstructs the section from YAML.
factory

Properties

directory String
Directory where migration sources live.
final
format → MigrationFormat
Default authoring format used by CLI generators.
final
hashCode int
The hash code for this object.
no setterinherited
ledgerTable String
Ledger table name used by SqlMigrationLedger.
final
registry String
Dart file that exports buildMigrations().
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaDump String
Schema dump directory path for schema_dump. Files are named <connection>-schema.sql.
final

Methods

copyWith({String? directory, String? registry, String? ledgerTable, String? schemaDump, MigrationFormat? format}) MigrationSection
Clones the section with optional overrides.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, Object?>
Serializes the section back to a map.
toString() String
A string representation of this object.
inherited

Operators

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