mirror of
https://github.com/flarum/core.git
synced 2025-07-22 17:21:27 +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:
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user