diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-22 16:24:46 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-22 16:24:46 +0200 |
commit | dc272e6e209e9cc9a555df7ee103e48f8d088dc6 (patch) | |
tree | 85970a6555a10d05652ebe52b33090fbb2123c6e /lib/db | |
parent | 57d178274de44d3f5a8bb6c93f346f7ca61a8f47 (diff) | |
download | nextcloud-server-dc272e6e209e9cc9a555df7ee103e48f8d088dc6.tar.gz nextcloud-server-dc272e6e209e9cc9a555df7ee103e48f8d088dc6.zip |
db: cast default values for boolean fields to booleans
Diffstat (limited to 'lib/db')
-rw-r--r-- | lib/db/mdb2schemareader.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; |