summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-09-21 11:13:58 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-09-21 11:13:58 +0200
commit69726d951e805e8692907c99b24edbc3099b29d4 (patch)
tree6cf0345d919bdf0db2619da3011ab0bf9a6355a7
parenta1c39f74b7eedd0185339f344bd72041724053d9 (diff)
parent7537d405e3691993dbd3a6938fdb63a9c4858129 (diff)
downloadnextcloud-server-69726d951e805e8692907c99b24edbc3099b29d4.tar.gz
nextcloud-server-69726d951e805e8692907c99b24edbc3099b29d4.zip
Merge pull request #11196 from owncloud/sqlite-migration-smallint-master
adding 'smallint unsigned' to type mapping for sqlite
-rw-r--r--lib/private/db/sqlitemigrator.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/db/sqlitemigrator.php b/lib/private/db/sqlitemigrator.php
index 94b421c5562..18e9d19d5ee 100644
--- a/lib/private/db/sqlitemigrator.php
+++ b/lib/private/db/sqlitemigrator.php
@@ -71,6 +71,7 @@ class SQLiteMigrator extends Migrator {
protected function getDiff(Schema $targetSchema, \Doctrine\DBAL\Connection $connection) {
$platform = $connection->getDatabasePlatform();
$platform->registerDoctrineTypeMapping('tinyint unsigned', 'integer');
+ $platform->registerDoctrineTypeMapping('smallint unsigned', 'integer');
return parent::getDiff($targetSchema, $connection);
}