register type mappings for unknown/unsupported mysql types

remotes/origin/fix-10825
Thomas Müller 12 years ago
parent 65c824a2c0
commit 7d60f7a222
  1. 4
      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

Loading…
Cancel
Save