mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-24 03:59:04 +08:00
Id columns should not include WithLength() on Data Migration scaffoldin
--HG-- branch : dev
This commit is contained in:
parent
cfbea89449
commit
0cf950bc83
@ -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 ));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user