Add converting sqlite values

This commit is contained in:
kolaente 2020-06-22 22:54:05 +02:00
parent 5a94a18e02
commit b756ffea19
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -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)
}