Open howz97 opened 6 years ago
func (m *DbMap) dropTable(t reflect.Type, name string, addIfExists bool) error { table := tableOrNil(m, t, name) if table == nil { return fmt.Errorf("table %s was not registered", table.TableName) } return m.dropTableImpl(table, addIfExists) }
Fix:
return fmt.Errorf("table %s was not registered", name)