Id columns should not include WithLength() on Data Migration scaffoldin

--HG--
branch : dev
This commit is contained in:
Sebastien Ros 2010-07-07 17:11:26 -07:00
parent cfbea89449
commit 0cf950bc83

View File

@ -22,7 +22,7 @@ namespace Orchard.DevTools.Services {
var options = new List<string>();
if ( createColumn.IsPrimaryKey ) {
options.Add(string.Format("WithLength({0})", createColumn.Length));
options.Add("PrimaryKey()");
}
if ( createColumn.IsUnique ) {
@ -33,10 +33,6 @@ namespace Orchard.DevTools.Services {
options.Add("NotNull()");
}
if ( createColumn.IsPrimaryKey ) {
options.Add("PrimaryKey()");
}
if ( createColumn.Length.HasValue ) {
options.Add(string.Format("WithLength({0})", createColumn.Length ));
}