Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown column type "json_array" requested in Sylius\Bundle\CoreBundle\Migrations\Version20201130071338 migration #634

Closed
Ferror opened this issue Dec 13, 2021 · 1 comment

Comments

@Ferror
Copy link
Contributor

Ferror commented Dec 13, 2021

Introduction

Downloading sylius-standard template and trying to run it via docker-compose attached in the repository leads to the error. No additional configuration steps were taken. The PHP container is the one that fails quay.io/sylius/php:latest

How to replicate the error

What I had executed:

composer create-project sylius/sylius-standard MyFirstShop
cd MyFirstShop
docker compose up -d

The Error

[error] Migration Sylius\Bundle\CoreBundle\Migrations\Version20201130071338 failed during Execution.
Error: "Unknown column type "json_array" requested. Any Doctrine type that you use has to be registered with
\Doctrine\DBAL\Types\Type::addType(). You can get a list of all the known types with
\Doctrine\DBAL\Types\Type::getTypesMap(). If this error occurs during database introspection then you might have
forgotten to register all database types for a Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have
your custom types implement Type#getMappedDatabaseTypes(). If the type name is empty you might have a problem with
the cache or forgot some mapping information."

In Exception.php line 120:
                               
  Unknown column type "json_array" requested. Any Doctrine type that you use   

  has to be registered with \Doctrine\DBAL\Types\Type::addType(). You can get  

   a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(  

  ). If this error occurs during database introspection then you might have f  

  orgotten to register all database types for a Doctrine Type. Use AbstractPl  

  atform#registerDoctrineTypeMapping() or have your custom types implement Ty  

  pe#getMappedDatabaseTypes(). If the type name is empty you might have a pro  

  blem with the cache or forgot some mapping information.    

Platform

  • MacOS Big Sur 11.6
  • Docker version 20.10.11, build dea9396
  • Docker Compose version v2.2.1
@razbakov
Copy link

See doctrine/orm#9078

@Ferror Ferror closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants