feat: content rendering improvements + save fix
This commit is contained in:
@@ -37,6 +37,15 @@ module.exports = {
|
||||
case 'mariadb':
|
||||
case 'mysql':
|
||||
dbClient = 'mysql2'
|
||||
|
||||
// Fix mysql boolean handling...
|
||||
dbConfig.typeCast = (field, next) => {
|
||||
if (field.type === 'TINY' && field.length === 1) {
|
||||
let value = field.string()
|
||||
return value ? (value === '1') : null
|
||||
}
|
||||
return next()
|
||||
}
|
||||
break
|
||||
case 'mssql':
|
||||
dbClient = 'mssql'
|
||||
|
Reference in New Issue
Block a user