Closed eerison closed 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)
Nice thanks for the update :)
Going to the initial pr that introduces the command might help too.
Ok I was checking the commands and those migrations, and
MigrateBlockNameSettingCommand was added in this PR: #112, the current code from 3.x branch just works if use code
instead of name
in settings
MigrateToJsonTypeCommand the current code of 3.x requires the settings be json
otherwise it'll crash the block, then you must use json.
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.
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
1473 MigrateBlockNameSettingCommand
1473 MigrateToJsonTypeCommand