Updating expressions to output sql for use with the fluent migrations, so it can be used for db upgrades.

This commit is contained in:
Morten Christensen
2012-12-20 11:36:20 -01:00
parent 9d55fed6e7
commit c1695c2f7f
24 changed files with 287 additions and 90 deletions

View File

@@ -33,6 +33,7 @@ namespace Umbraco.Core.Persistence.SqlSyntax
string CreateConstraint { get; }
string DeleteConstraint { get; }
string CreateForeignKeyConstraint { get; }
string DeleteDefaultConstraint { get; }
string Format(TableDefinition table);
string Format(IEnumerable<ColumnDefinition> columns);
List<string> Format(IEnumerable<IndexDefinition> indexes);
@@ -40,5 +41,9 @@ namespace Umbraco.Core.Persistence.SqlSyntax
string FormatPrimaryKey(TableDefinition table);
string GetQuotedValue(string value);
string Format(ColumnDefinition column);
string Format(IndexDefinition index);
string Format(ForeignKeyDefinition foreignKey);
string FormatColumnRename(string tableName, string oldName, string newName);
string FormatTableRename(string oldName, string newName);
}
}