Migration Type
Object that represents an SQL migration file on disk, and are often used provide more context or information while logging information about migrations.
Record fields
| Record Field | Description |
Full Usage:
downContent
Field type: string
|
|
Full Usage:
manualTransaction
Field type: bool
|
|
Full Usage:
name
Field type: string
|
|
Full Usage:
timestamp
Field type: int64
|
|
Full Usage:
upContent
Field type: string
|
Static members
| Static member | Description |
Full Usage:
Migration.ExtractFromFilename(filename)
Parameters:
string
-
The filename to extract the migration information from
Returns: Validation<(string * int64), string>
A Result that may contain a tuple of the migration name and timestamp
or a set of strings that may represent all of the found errors while validating the filename
|
|
Full Usage:
Migration.ExtractFromPath(path)
Parameters:
string
-
The path to extract the migration information from
Returns: Validation<(string * int64), string>
A Result that may contain a tuple of the migration name and timestamp
or a set of strings that may represent all of the found errors while validating the path
|
This is mostly an utility function as internally calls `ExtractFromFilename` with System.IO's `Path.GetFileName`
|
Migrondi