Fix get current table

This commit is contained in:
Jinzhu 2021-02-26 17:30:00 +08:00
parent eb9a704fda
commit 3694ef4a2c
1 changed files with 2 additions and 1 deletions

View File

@ -490,7 +490,8 @@ func (m Migrator) GuessConstraintAndTable(stmt *gorm.Statement, name string) (_
}
}
}
return nil, nil, ""
return nil, nil, stmt.Schema.Table
}
func (m Migrator) CreateConstraint(value interface{}, name string) error {