I got the columns update by doing: php bin/console doctrine:schema:update --dump-sql
After the update, the update tools output is still:
ALTER TABLE mws_nc_recipe ALTER recipe_pet_json TYPE JSONB;
ALTER TABLE mws_nc_recipe ALTER recipe_pet_json DROP DEFAULT;
ALTER TABLE mws_nc_recipe ALTER recipe_items_json TYPE JSONB;
ALTER TABLE mws_nc_recipe ALTER recipe_items_json DROP DEFAULT;
ALTER TABLE mws_nc_recipe ALTER analysis_json TYPE JSONB;
ALTER TABLE mws_nc_recipe ALTER analysis_json DROP DEFAULT;
ALTER TABLE mws_nc_recipe ALTER requirement_json TYPE JSONB;
ALTER TABLE mws_nc_recipe ALTER requirement_json DROP DEFAULT;
Bug Report
Summary
I have a entity with several jsonb columns:
Current behaviour
I got the columns update by doing:
php bin/console doctrine:schema:update --dump-sql
After the update, the update tools output is still:
I set the Postgres Version in my .env file:
This is imported in
doctrine.yaml
file:Expected behaviour
Once the columns are update, the schema tool should indicate that it is in sync with database