Ejemplo n.º 1
0
        // Add migration methods
        public DbMigration AddSql(string version, string name, string description, string sql, DbMigrationTiming timing = DbMigrationTiming.End)
        {
            var migr = new SqlMigration(CurrentModule, version, name, description, sql, timing);

            SqlMigrations.Add(migr);
            return(migr);
        }
Ejemplo n.º 2
0
 public DbUpgradeScript(SqlMigration migration)
 {
     Migration = migration;
       ScriptType = Migration.GetDdlScriptType();
       Sql = migration.Sql;
       _creationOrder = migration.CreationOrder;
 }
Ejemplo n.º 3
0
 public DbUpgradeScript(SqlMigration migration)
 {
     Migration      = migration;
     ScriptType     = Migration.GetDdlScriptType();
     Sql            = migration.Sql;
     _creationOrder = migration.CreationOrder;
 }