Exemple #1
0
        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();
        }
Exemple #2
0
 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();
         }
 }