Add converting sqlite values
This commit is contained in:
parent
5a94a18e02
commit
b756ffea19
|
@ -69,6 +69,11 @@ func init() {
|
|||
}
|
||||
case schemas.SQLITE:
|
||||
// welp
|
||||
// sqlite will need a long string with all table modifications
|
||||
// But at least we can do the conversion of data with it
|
||||
sql = []string{
|
||||
"UPDATE " + table + " SET " + colFinal + " = DATETIME(" + colFinal + ", 'unixepoch', 'localtime')",
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("unsupported dbms: %s", tx.Dialect().URI().DBType)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue