enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647
This commit is contained in:
parent
f6873437f4
commit
10cba1556b
5
main.go
5
main.go
@ -451,6 +451,7 @@ func (s *DB) CurrentDatabase() string {
|
||||
return name
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Add foreign key to the given scope
|
||||
|
||||
@ -550,3 +551,7 @@ func (s *DB) GetErrors() (errors []error) {
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (s *DB) EnableIdentityInsert(db *DB, tableName string) *DB {
|
||||
return s.dialect.EnableIdentityInsert(db, tableName)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user