enable identity column insert optionally for mssql ref: https://github.com/jinzhu/gorm/issues/647

This commit is contained in:
biju-kalissery 2015-09-08 14:06:45 -04:00
parent f6873437f4
commit 10cba1556b

View File

@ -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)
}