sonata-project / SonataPageBundle

This bundle provides a Site and Page management through container and block services
https://docs.sonata-project.org/projects/SonataPageBundle
MIT License
219 stars 209 forks source link

Check which command are necessary #1465

Closed eerison closed 2 years ago

eerison commented 2 years ago

When I was working in this PR: #1460 , I realized that some commands maybe are not used because there is possible problems, But should be good understand the reason to have those commands and improve the code and coverage with tests.

Commands that must be checked

jordisala1991 commented 2 years ago

The migrate to commands maybe need to be removed. The Json one was to migrate a column from the old json type from sonata to json from doctrine (or something like that).

I removed that one from SonataMediaBundle. (we need to ensure the column types are correct)

eerison commented 2 years ago

Nice thanks for the update :)

jordisala1991 commented 2 years ago

Going to the initial pr that introduces the command might help too.

eerison commented 2 years ago

Ok I was checking the commands and those migrations, and

and as @jordisala1991 said it was code to do some migration from old version both codes are 10 years old 😃

but for the first 2 commands I'll open a PR to remove them.