[Pkg-owncloud-commits] [owncloud] 06/61: register type mappings for unknown/unsupported mysql types

David Prévot taffit at moszumanska.debian.org
Thu Jul 31 03:51:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit c152ab4572e5a71ecc16431daa711fb32eb47ad3
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Thu Jul 24 12:17:26 2014 +0200

    register type mappings for unknown/unsupported mysql types
---
 lib/private/db/mysqlmigrator.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/private/db/mysqlmigrator.php b/lib/private/db/mysqlmigrator.php
index 97495f5..c0adcdf 100644
--- a/lib/private/db/mysqlmigrator.php
+++ b/lib/private/db/mysqlmigrator.php
@@ -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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list