mirror of https://github.com/go-gorm/gorm.git
Fix get current table
This commit is contained in:
parent
eb9a704fda
commit
3694ef4a2c
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue