From dc272e6e209e9cc9a555df7ee103e48f8d088dc6 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 22 Jul 2013 16:24:46 +0200 Subject: [PATCH] db: cast default values for boolean fields to booleans --- lib/db/mdb2schemareader.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/db/mdb2schemareader.php b/lib/db/mdb2schemareader.php index 0ead9528c93..b88e0f60419 100644 --- a/lib/db/mdb2schemareader.php +++ b/lib/db/mdb2schemareader.php @@ -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;