mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Id columns should not include WithLength() on Data Migration scaffoldin
--HG-- branch : dev
This commit is contained in:
@@ -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 ));
|
||||
}
|
||||
|
Reference in New Issue
Block a user