public static void setup() { DbMigrations.MigrationManager migrationManager = new DbMigrations.MigrationManager(); migrationManager.MigrateToLastRevision(); Researcher researcher = Researcher.Find("admin"); Researcher.Current = researcher; Researcher.Current.ActiveProject = createLightFstProject(); initializeBehaviors(); }
private static void Migrations(string[] args) { if (args.Length > 2 && args[1] == "d") { MigratorConsole console = new MigratorConsole(); console.MigrateToRevision(Int32.Parse(args[2])); return; } MigrationManager migrationManager = new MigrationManager(); if (migrationManager.hasDetectedNewMigrations()) { Console.WriteLine("new migrations found"); migrationManager.MigrateToLastRevision(); } }