Skip to content

Commit

Permalink
Don't include ASC in primary key script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sethreno committed Apr 21, 2016
1 parent 8dc3b7f commit d597e5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/ConstraintColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public ConstraintColumn(string columnName, bool desc) {
}

public string Script() {
return "[" + ColumnName + "]" + (Desc ? " DESC" : " ASC");
return "[" + ColumnName + "]" + (Desc ? " DESC" : "");
}
}
}

0 comments on commit d597e5e

Please sign in to comment.