IMiMigrationSerializer Type
This service is responsible for serializing and deserializing the migration files. The default implementation coordinates between the v0.x and the v1.x formats to provide backwards compatibility.
Instance members
| Instance member | Description | ||
Full Usage:
this.DecodeJson
Parameters:
string
-
The string to deserialize
Returns: Migration
A Result that may contain a Migration object
or a SerializationError
Modifiers: abstract |
The string is the content of the migration file
|
||
Full Usage:
this.DecodeMigrationRecord
Parameters:
string
-
The string to deserialize
Returns: MigrationRecord
A Result that may contain a MigrationRecord object
or a SerializationError
Modifiers: abstract |
The string is the content of the migration file
|
||
Full Usage:
this.DecodeText
Parameters:
string
-
The string to deserialize
?migrationName : string
-
Optional migration name in case we're decoding v0 migrations format
Returns: Migration
A Result that may contain a Migration object
or a SerializationError
Modifiers: abstract |
The string is the content of the migration file
|
||
|
|||
Full Usage:
this.EncodeMigrationRecord
Parameters:
MigrationRecord
-
The MigrationRecord object to serialize
Returns: string
A string
Modifiers: abstract |
The string is the content of the migration file
|
||
|
Migrondi