public UpgradeEngine GetMigrationUpdateEngine() { UpgradeEngineBuilder builder; switch (_databaseType) { case DatabaseType.Sqlite: builder = DeployChanges.To.SQLiteDatabase(_connectionString); break; case DatabaseType.Oracle: throw new NotImplementedException("Oracle Implementation does not yet exist"); case DatabaseType.MariaDb: throw new NotImplementedException("MariaDb Implementation does not yet exist"); case DatabaseType.Postgresql: throw new NotImplementedException("Postgresql Implementation does not yet exist"); default: throw new ArgumentOutOfRangeException(); } return(builder .WithScripts(MigrationLocator.GetSchemaMigrations()) .Build()); }
public void TestMigrationLocatorFindsMigrations() { MigrationLocator.GetSchemaMigrations().ShouldNotBeEmpty(); }