db: cast default values for boolean fields to booleans

This commit is contained in:
Robin Appelman 2013-07-22 16:24:46 +02:00
parent 57d178274d
commit dc272e6e20

View file

@ -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;