fix migrator
This commit is contained in:
parent
f83b00d20d
commit
f86b5416c4
@ -134,7 +134,7 @@ func (m Migrator) CreateTable(values ...interface{}) error {
|
|||||||
if err := m.RunWithValue(value, func(stmt *gorm.Statement) (errr error) {
|
if err := m.RunWithValue(value, func(stmt *gorm.Statement) (errr error) {
|
||||||
var (
|
var (
|
||||||
createTableSQL = "CREATE TABLE ? ("
|
createTableSQL = "CREATE TABLE ? ("
|
||||||
values = []interface{}{clause.Table{Name: stmt.Table}}
|
values = []interface{}{clause.Table{Name: stmt.Schema.Table}}
|
||||||
hasPrimaryKeyInDataType bool
|
hasPrimaryKeyInDataType bool
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user