mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
db: cast default values for boolean fields to booleans
This commit is contained in:
parent
57d178274d
commit
dc272e6e20
1 changed files with 3 additions and 0 deletions
|
|
@ -167,6 +167,9 @@ class OC_DB_MDB2SchemaReader {
|
|||
$type = 'bigint';
|
||||
}
|
||||
}
|
||||
if ($type == 'boolean' && isset($options['default'])){
|
||||
$options['default'] = self::asBool($options['default']);
|
||||
}
|
||||
if (!empty($options['autoincrement'])
|
||||
&& !empty($options['notnull'])) {
|
||||
$options['primary'] = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue