1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 06:00:24 +02:00

Fix to ensure we can rename columns in tables with enums

See https://github.com/laravel/framework/issues/1186
This commit is contained in:
Toby Zerner
2018-07-21 15:26:12 +09:30
parent 93b9513df2
commit 87bba2186e

View File

@@ -63,6 +63,9 @@ class Migrator
$this->repository = $repository;
$this->schemaBuilder = $connection->getSchemaBuilder();
// Workaround for https://github.com/laravel/framework/issues/1186
$connection->getDoctrineSchemaManager()->getDatabasePlatform()->registerDoctrineTypeMapping('enum', 'string');
}
/**