Fix sqlite dump
This commit is contained in:
parent
6becb291d3
commit
41634f24e7
10
engine.go
10
engine.go
|
@ -543,7 +543,15 @@ func (engine *Engine) dumpTables(tables []*schemas.Table, w io.Writer, tp ...sch
|
||||||
temp += fmt.Sprintf(", '%s'", s)
|
temp += fmt.Sprintf(", '%s'", s)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
temp += fmt.Sprintf(", %s", s)
|
if dq, ok := d.(bool); ok && dstDialect.URI().DBType == schemas.SQLITE {
|
||||||
|
if dq {
|
||||||
|
temp += ", 1"
|
||||||
|
} else {
|
||||||
|
temp += ", 0"
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
temp += fmt.Sprintf(", %s", s)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue