public bool Install(Tenant tenant, string version)
 {
     if (tenant.DBType == Constants.DefaultDBType && version == "1.0.3")
     {
         // version 1.0.0 used SQL scripts rather than migrations, so we need to seed the migration history table
         _sql.ExecuteNonQuery(tenant, MigrationUtils.BuildInsertScript("Blog.01.00.00.00"));
     }
     return(Migrate(new BlogContext(_tenantManager, _accessor), tenant, MigrationType.Up));
 }
예제 #2
0
        public override string GetInsertScript(HistoryRow row)
        {
            if (row == null)
            {
                throw new ArgumentNullException(nameof(row));
            }

            return(MigrationUtils.BuildInsertScript(row, Dependencies, _migrationHistoryTable));
        }