mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:38:08 +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
93b9513df2
commit
87bba2186e
@ -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…
x
Reference in New Issue
Block a user