We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcb3122 commit 121e78bCopy full SHA for 121e78b
1 file changed
primarykey.go
@@ -31,7 +31,11 @@ func (c *PrimaryKeySchema) Compare(obj interface{}) int {
31
return +999
32
}
33
val := _compareString(c.row["table_name"], c2.row["table_name"])
34
- return val
+ if val != 0 {
35
+ return val
36
+ }
37
+
38
+ return _compareString(c.row["constraint_name"], c2.row["constraint_name"])
39
40
41
// Add returns SQL to add the primary key
0 commit comments