menu
serverpod_cli package
documentation
analyzer.dart
MigrationGenerator class
MigrationGenerator class
dark_mode
light_mode
MigrationGenerator
class
Constructors
MigrationGenerator
({
required
Directory
directory
,
required
String
projectName
})
Properties
directory
→
Directory
final
hashCode
→
int
The hash code for this object.
no setter
inherited
projectName
→
String
final
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
Methods
createMigration
(
{
String
?
tag
,
required
bool
force
,
required
GeneratorConfig
config
,
bool
write
=
true
})
→
Future
<
MigrationVersion
?
>
Creates a new migration version. If
tag
is specified, the migration will be tagged with the given name. If
force
is true, the migration will be created even if there are warnings. If
write
is false, the migration will not be written to disk.
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
repairMigration
(
{
String
?
tag
,
required
bool
force
,
required
String
runMode
,
String
?
targetMigrationVersion
})
→
Future
<
File
?
>
Creates a repair migration that will bring the database up to date with the targeted migration version.
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
Static Methods
createVersionName
(
String
?
tag
)
→
String
serverpod_cli package
documentation
analyzer
MigrationGenerator class
analyzer library