Ejemplo n.º 1
0
        public void Run()
        {
            Log.Debug("uFluent.Migrate started");

            TableFactory.CreateTables();

            if (!uFluentSettings.Enabled)
            {
                Log.Info("Not enabled, skipping.");
                return;
            }

            if (!_databaseUtil.PreviousMigrationsHaveFinishedCleanly())
            {
                Log.Error("Previous migration did not finish cleanly, manual intervention required!");
                return;
            }

            var migrations = GetMigrations();

            ProcessMigrations(migrations);
        }