Beispiel #1
0
        static void Main(string[] args)
        {
            var migrationDir = LocateMigrations();

            _args = args;
            _development = new Migrator(migrationDir, "development");
            _test = new Migrator(migrationDir, "test",silent:true);
            _production = new Migrator(migrationDir, "production");
            SayHello();
        }
Beispiel #2
0
 static void Reload()
 {
     _development = new Migrator(_datatypes, _migration_dir, "development");
     _test = new Migrator(_datatypes, _migration_dir, "test", silent: true);
     _production = new Migrator(_datatypes, _migration_dir, "production");
     _production.Reload();
     if (_development.HasErrors)
         Console.WriteLine("*** Invalid migrations found ***.\r\nList migrations and look for those suffixed with !!");
 }