Ensures not to add new indexes if they already exist

This commit is contained in:
Shannon
2014-03-12 18:37:22 +11:00
parent d0fc3ddba5
commit aee10348e5
8 changed files with 49 additions and 7 deletions

View File

@@ -0,0 +1,13 @@
namespace Umbraco.Core.Persistence.DatabaseModelDefinitions
{
/// <summary>
/// Represents a database index definition retreived by querying the database
/// </summary>
internal class DbIndexDefinition
{
public virtual string IndexName { get; set; }
public virtual string TableName { get; set; }
public virtual string ColumnName { get; set; }
public virtual bool IsUnique { get; set; }
}
}