Beispiel #1
0
        public override void Up()
        {
            var context = (MigrationContext)ApplicationContext;

            SqLiteAlter = context.SQLiteAlter;
            MigrationHelper = context.MigrationHelper;

            switch (context.MigrationType)
            {
                case MigrationType.Main:
                    MainDbUpgrade();
                    return;
                case MigrationType.Log:
                    LogDbUpgrade();
                    return;
                default:
                    LogDbUpgrade();
                    MainDbUpgrade();
                    return;
            }
        }
Beispiel #2
0
 public MigrationController(IAnnouncer announcer, ISQLiteAlter sqLiteAlter, ISqLiteMigrationHelper migrationHelper)
 {
     _announcer = announcer;
     _sqLiteAlter = sqLiteAlter;
     _migrationHelper = migrationHelper;
 }