]> source.dussan.org Git - nextcloud-server.git/commitdiff
register type mappings for unknown/unsupported mysql types
authorThomas Müller <thomas.mueller@tmit.eu>
Thu, 24 Jul 2014 10:17:26 +0000 (12:17 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Thu, 24 Jul 2014 10:17:26 +0000 (12:17 +0200)
lib/private/db/mysqlmigrator.php

index 97495f520329d6694919d92f5b0788a592c906a7..c0adcdf5df3570a962bd96e3104890699e1f0c9c 100644 (file)
@@ -17,6 +17,10 @@ class MySQLMigrator extends Migrator {
         * @return \Doctrine\DBAL\Schema\SchemaDiff
         */
        protected function getDiff(Schema $targetSchema, \Doctrine\DBAL\Connection $connection) {
+               $platform = $connection->getDatabasePlatform();
+               $platform->registerDoctrineTypeMapping('enum', 'string');
+               $platform->registerDoctrineTypeMapping('bit', 'string');
+
                $schemaDiff = parent::getDiff($targetSchema, $connection);
 
                // identifiers need to be quoted for mysql