MySQL / MariaDB not accepting JSON Format? Can not create Database

前端 未结 3 1319
别跟我提以往
别跟我提以往 2020-12-22 04:23

I am currently using XAMPP/Apache with MariaDB on phpmyadmin. I am trying to create a table based on my code using Doctrine and therefore Annotations for validating a form.

3条回答
  •  鱼传尺愫
    2020-12-22 05:25

    Had the same issue and i found this workaround:

    In Doctrine.yaml found out that the server_version was higher than my MariaDB version, so I corrected that in this line:

       doctrine:
            dbal:
                server_version: '5.5'
    

    I did not work until I manually erased the migrations i already did. You can found them in src/Migrations.

    Then run again:

     php bin/console make:migration
     php bin/console doctrine:migrations:migrate
    

    And that did the work, hope it helps.

提交回复
热议问题