Skip to content

Commit cf811c5

Browse files
authored
fix(fixPKey): better logging with table name (#34)
+ remove copy/pasted debug message closes #33
1 parent 9470b25 commit cf811c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

constraintsRestore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ func FixConstraints() {
4747

4848
// Fix the primary key
4949
func fixPKey(pk constraint) {
50-
Debugf("Fixing the Primary / Unique Key")
50+
Debugf("Fixing the Primary / Unique Key for table %s", pk.table)
5151
totalViolators := 1
52+
5253
// Extract the columns from the list that was collected during backup
5354
keys, err := ColExtractor(pk.column, `\(.*?\)`)
5455
if err != nil {
@@ -96,7 +97,6 @@ func fixPKViolator(tab, col, dttype string) {
9697

9798
// Fix the Foreign Keys
9899
func fixFKey(con constraint) {
99-
Debugf("Fixing the Primary / Unique Key")
100100
totalViolators := 1
101101

102102
// The objects involved in this foriegn key clause

0 commit comments

Comments
 (0)