error check during stylesheet upgrade

This commit is contained in:
Shannon
2015-01-23 14:32:09 +11:00
parent 4ea0fa0a19
commit 50ed207211
2 changed files with 5 additions and 1 deletions

View File

@@ -229,7 +229,7 @@ namespace Umbraco.Core
if (currentVersion != configStatus)
{
ProfilingLogger.Logger.Info<ApplicationContext>("CurrentVersion different from configStatus: '" + currentVersion + "','" + configStatus + "'");
ProfilingLogger.Logger.Debug<ApplicationContext>("CurrentVersion different from configStatus: '" + currentVersion + "','" + configStatus + "'");
}

View File

@@ -23,6 +23,10 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSevenThreeZe
{
public override void Up()
{
//Don't exeucte if the stylesheet table is not there
var tables = SqlSyntax.GetTablesInSchema(Context.Database).ToArray();
if (tables.InvariantContains("cmsStylesheet") == false) return;
//This is all rather nasty but it's how stylesheets used to work in the 2 various ugly ways so we just have to
// deal with that to get this migration done