C# Class Drey.Configuration.Infrastructure.Schema.MigrationManager

Manages the Fluentmigrator migration tooling.
Show file Open project: dealproc/Drey

Public Methods

Method Description
Migrate ( Drey config ) : void

Migrates the configuration database, making a backup before it begins.

Migrate ( string fileNameAndPath, bool withBackup = false, bool withAnnouncer = false ) : void

Migrates the specified file name and path. This method is called directly when performing integration tests.

Private Methods

Method Description
Backup ( FileInfo currentDb ) : string

Backups the current configuration database before a migration.

Method Details

Migrate() public static method

Migrates the configuration database, making a backup before it begins.
public static Migrate ( Drey config ) : void
config Drey The configuration.
return void

Migrate() public static method

Migrates the specified file name and path. This method is called directly when performing integration tests.
public static Migrate ( string fileNameAndPath, bool withBackup = false, bool withAnnouncer = false ) : void
fileNameAndPath string The file name and path.
withBackup bool if set to true [with backup].
withAnnouncer bool if set to true [with announcer].
return void