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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user