Exception is thrown if trying to run mysql in med trust. Migrations arranged to execute schema migrations first and then data migrations. If a schema migration fails it will attempt to run the downgrade scripts of the migrations if running mysql since schema changes aren't supported in transactions. Updated all sql syntax providers to try to return only the column indexes, not key indexes. Updates the db version checker to include errors for all missing columns, indexes and constraints in the db and vice versa in the schema.

This commit is contained in:
Shannon
2014-03-14 13:04:20 +11:00
parent d76fd7d25e
commit bbe6194b06
27 changed files with 292 additions and 104 deletions

View File

@@ -7,7 +7,7 @@ namespace Umbraco.Core.Persistence.Migrations
/// database migrations with Up/Down methods for pushing changes UP or pulling them DOWN.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class MigrationAttribute : Attribute
public sealed class MigrationAttribute : Attribute
{
public MigrationAttribute(string targetVersion, int sortOrder, string product)
{