I am not sure if the latest update to v4.1.13 has caused the issue or something else. Suddenly, if I try to use anything related to database access in builder, I get following error:
Unknown database type uuid requested, Doctrine\DBAL\Platforms\MariaDb110700Platform may not support it.
I have updated several websites without issues. Just one of them doesn’t allow me to access the database.
@omninet Register a type mapping so Doctrine treats uuid as string.
Add this in a Service Provider or Plugin boot method:
use Illuminate\Support\Facades\DB;
public function boot()
{
DB::connection()->getDoctrineSchemaManager()
->getDatabasePlatform()
->registerDoctrineTypeMapping('uuid', 'string');
}
Thank you for your suggestion. Unfortunately, this didn’t work. I have tried to go into that direction, but I either got new errors or the same, first one.
I would prefer to find the root cause of the issue. What introduced that problem. The update to v4.1.13? Or code in my plugins? But I have also tried to remove all plugins, and it didn’t help.