Implementing the MigrationRunner, which will be used for database upgrades.

Refactoring a few bits in the syntax of the migration models.
Adding an extension of the PluginManager to find migrations by Type and Attribute.
This commit is contained in:
Morten Christensen
2012-11-30 18:48:20 -01:00
parent d05a8e0390
commit 213451e442
11 changed files with 123 additions and 16 deletions

View File

@@ -371,7 +371,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax
protected virtual string FormatNullable(Migrations.Model.ColumnDefinition column)
{
return !column.IsNullable ? "NOT NULL" : string.Empty;
return column.IsNullable ? string.Empty : "NOT NULL";
}
protected virtual string FormatDefaultValue(Migrations.Model.ColumnDefinition column)