Interface IVersionLoader
Manages the version table and the stored versions
Namespace: FluentMigrator.Runner
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public interface IVersionLoader
Properties
AlreadyCreatedVersionSchema
Gets a value indicating whether the schema for the version table has been created (or already exited)
Declaration
bool AlreadyCreatedVersionSchema { get; }
Property Value
| Type | Description |
|---|---|
| bool |
AlreadyCreatedVersionTable
Gets a value indicating whether the version table has been created (or already exited)
Declaration
bool AlreadyCreatedVersionTable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Runner
The runner this version loader belongs to
Declaration
IMigrationRunner Runner { get; set; }
Property Value
| Type | Description |
|---|---|
| IMigrationRunner |
VersionInfo
Gets an interface to query/update the status of migrations
Declaration
IVersionInfo VersionInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| IVersionInfo |
VersionTableMetaData
Gets the version table meta data
Declaration
IVersionTableMetaData VersionTableMetaData { get; }
Property Value
| Type | Description |
|---|---|
| IVersionTableMetaData |
Methods
DeleteVersion(long)
Deletes a version from the version table
Declaration
void DeleteVersion(long version)
Parameters
| Type | Name | Description |
|---|---|---|
| long | version | The version to delete from the version table |
GetVersionTableMetaData()
Get the version table metadata
Declaration
IVersionTableMetaData GetVersionTableMetaData()
Returns
| Type | Description |
|---|---|
| IVersionTableMetaData | The version table metadata |
LoadVersionInfo()
Loads all version data stored in the version table
Declaration
void LoadVersionInfo()
RemoveVersionTable()
Removes the version table
Declaration
void RemoveVersionTable()
UpdateVersionInfo(long)
Adds the version information
Declaration
void UpdateVersionInfo(long version)
Parameters
| Type | Name | Description |
|---|---|---|
| long | version | The version number |
UpdateVersionInfo(long, string)
Adds the version information
Declaration
void UpdateVersionInfo(long version, string description)
Parameters
| Type | Name | Description |
|---|---|---|
| long | version | The version number |
| string | description | The version description |