mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 13:01:34 -04:00
register type mappings for unknown/unsupported mysql types
This commit is contained in:
parent
65c824a2c0
commit
7d60f7a222
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue