Convert migration code to use objects and remove the version attribute from migration files. #52

Closed
opened 2020-04-02 00:17:31 +00:00 by jamie · 4 comments
jamie commented 2020-04-02 00:17:31 +00:00 (Migrated from git.hazaar.io)

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.

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.
jamie commented 2020-04-02 02:10:03 +00:00 (Migrated from git.hazaar.io)

created merge request !25 to address this issue

created merge request !25 to address this issue
jamie commented 2020-04-02 02:10:03 +00:00 (Migrated from git.hazaar.io)

mentioned in merge request !25

mentioned in merge request !25
jamie commented 2020-04-02 06:26:14 +00:00 (Migrated from git.hazaar.io)

closed via merge request !25

closed via merge request !25
jamie commented 2020-04-02 06:26:15 +00:00 (Migrated from git.hazaar.io)

mentioned in commit 17292335ac

mentioned in commit 17292335ac5321dfbfa138fb0f5cad9d0b5de564
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/hazaar-dbi#52
No description provided.