Convert migration code to use objects and remove the `version` attribute from migration files.
Currently I use json_decode(true);
to parse the migration files which returns a multi-dimensional array. I would like to change this to return objects using just json_decode();
. Obviously the migration code will need to be updated to handle objects.
The benefit is that I will be able to detect which version a migration script is and execute the replay function accordingly.