mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08: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:
parent
cd31f11b64
commit
a44d4bfef3
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user