Initial work on fluent database migrations

This commit is contained in:
Morten Christensen
2012-11-30 15:01:52 -01:00
parent a5344b4087
commit f59f57fd6a
58 changed files with 1841 additions and 6 deletions

View File

@@ -26,5 +26,24 @@ namespace Umbraco.Core.Persistence.SqlSyntax
string GetSpecialDbType(SpecialDbTypes dbTypes);
string GetConstraintDefinition(ColumnDefinition column, string tableName);
List<string> ToAlterIdentitySeedStatements(TableDefinition table);
string CreateTable { get; }
string DropTable { get; }
string AddColumn { get; }
string DropColumn { get; }
string AlterColumn { get; }
string RenameColumn { get; }
string RenameTable { get; }
string CreateSchema { get; }
string AlterSchema { get; }
string DropSchema { get; }
string CreateIndex { get; }
string DropIndex { get; }
string InsertData { get; }
string UpdateData { get; }
string DeleteData { get; }
string CreateConstraint { get; }
string DeleteConstraint { get; }
string CreateForeignKeyConstraint { get; }
string Format(Migrations.Model.ColumnDefinition column);
}
}