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