Adding some of the database changes that is part of v6 - just renaming a few columns so far.
Refactoring the installer, which is not working 100% yet.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Umbraco.Core.Logging;
|
||||
using Umbraco.Core.Persistence.Migrations.Initial;
|
||||
using Umbraco.Core.Persistence.SqlSyntax;
|
||||
using Umbraco.Core.Persistence.SqlSyntax.ModelDefinitions;
|
||||
@@ -84,7 +85,7 @@ namespace Umbraco.Core.Persistence
|
||||
}
|
||||
|
||||
//Specific to Sql Ce - look for changes to Identity Seed
|
||||
if(DatabaseContext.Current.DatabaseProvider == DatabaseProviders.SqlServerCE)
|
||||
if (DatabaseContext.Current.ProviderName.Contains("SqlServerCe"))
|
||||
{
|
||||
var seedSql = SyntaxConfig.SqlSyntaxProvider.ToAlterIdentitySeedStatements(tableDefinition);
|
||||
foreach (var sql in seedSql)
|
||||
@@ -93,6 +94,8 @@ namespace Umbraco.Core.Persistence
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LogHelper.Info<Database>(string.Format("New table '{0}' was created", tableName));
|
||||
}
|
||||
|
||||
public static void DropTable<T>(this Database db)
|
||||
@@ -125,6 +128,8 @@ namespace Umbraco.Core.Persistence
|
||||
{
|
||||
NewTable += PetaPocoExtensions_NewTable;
|
||||
|
||||
LogHelper.Info<Database>("Initializing database schema creation");
|
||||
|
||||
var creation = new DatabaseCreation(db);
|
||||
creation.InitializeDatabaseSchema();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user