mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-21 11:29:51 -05:00
bad variable and covering another case
This commit is contained in:
@@ -872,7 +872,7 @@ func (db Database) CreateIndexedTable(ctx *sql.Context, tableName string, sch sq
|
||||
}
|
||||
if strings.ToLower(tableName) == doltdb.DocTableName {
|
||||
// validate correct schema
|
||||
if !dtables.DoltDocsSqlSchema.Equals(sch.Schema) {
|
||||
if !dtables.DoltDocsSqlSchema.Equals(sch.Schema) && !dtables.OldDoltDocsSqlSchema.Equals(sch.Schema) {
|
||||
return fmt.Errorf("incorrect schema for dolt_docs table")
|
||||
}
|
||||
} else if doltdb.HasDoltPrefix(tableName) {
|
||||
|
||||
@@ -26,5 +26,5 @@ var OldDoltDocsSqlSchema sql.PrimaryKeySchema
|
||||
|
||||
func init() {
|
||||
DoltDocsSqlSchema, _ = sqlutil.FromDoltSchema(doltdb.DocTableName, doltdb.DocsSchema)
|
||||
DoltDocsSqlSchema, _ = sqlutil.FromDoltSchema(doltdb.DocTableName, doltdb.OldDocsSchema)
|
||||
OldDoltDocsSqlSchema, _ = sqlutil.FromDoltSchema(doltdb.DocTableName, doltdb.OldDocsSchema)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user