diff --git a/src/ActivityPub.php b/src/ActivityPub.php index 5b0215c..b4b108f 100644 --- a/src/ActivityPub.php +++ b/src/ActivityPub.php @@ -102,6 +102,12 @@ class ActivityPub public function updateSchema() { $entityManager = @$this->module->get( EntityManager::class ); + $driverName = $entityManager->getConnection()->getDriver()->getName(); + if ( $driverName === 'pdo_mysql' ) + { + $entityManager->getConnection()->getDatabasePlatform() + ->registerDoctrineTypeMapping('enum', 'string'); + } $schemaTool = new SchemaTool( $entityManager ); $classes = $entityManager->getMetadataFactory()->getAllMetadata(); $schemaTool->updateSchema( $classes, true );