From d597e5eb59d0228bc606c20afc488e2df8dda6aa Mon Sep 17 00:00:00 2001 From: sethreno Date: Thu, 21 Apr 2016 15:25:59 -0500 Subject: [PATCH] Don't include ASC in primary key script ASC is the default so it isn't necessary to specify it. Doing so causes unwanted diffs for people who use SchemaZen for db version control. --- model/ConstraintColumn.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/ConstraintColumn.cs b/model/ConstraintColumn.cs index 84719de8..cb1447c3 100644 --- a/model/ConstraintColumn.cs +++ b/model/ConstraintColumn.cs @@ -11,7 +11,7 @@ public ConstraintColumn(string columnName, bool desc) { } public string Script() { - return "[" + ColumnName + "]" + (Desc ? " DESC" : " ASC"); + return "[" + ColumnName + "]" + (Desc ? " DESC" : ""); } } }