Skip to content

Commit 894e1bf

Browse files
authored
Merge pull request #43 from fwiesweg/master
Show table name in different defs warning
2 parents 69514b3 + 065fe0c commit 894e1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ func (c *IndexSchema) Change(obj interface{}) {
196196

197197
if c.get("constraint_def") != c2.get("constraint_def") {
198198
// c1.constraint and c2.constraint are just different
199-
fmt.Printf("-- CHANGE: Different defs:\n-- %s\n-- %s\n", c.get("constraint_def"), c2.get("constraint_def"))
199+
fmt.Printf("-- CHANGE: Different defs on %s:\n-- %s\n-- %s\n", c.get("table_name"), c.get("constraint_def"), c2.get("constraint_def"))
200200
if c.get("constraint_def") == "null" {
201201
// c1.constraint does not exist, c2.constraint does, so
202202
// Drop constraint

0 commit comments

Comments
 (0)