class helper

The migrator is responsible for applying new migrations in the correct order.

Methods

array
get_schema_steps(array $schema_changes)

Get the schema steps from an array of schema changes

array
reverse_update_data(array $steps)

Reverse the update steps from an array of data changes

Details

at line 30
array get_schema_steps(array $schema_changes)

Get the schema steps from an array of schema changes

This splits up $schema_changes into individual changes so that the changes can be chunked

Parameters

array $schema_changes

from migration

Return Value

array

at line 95
array reverse_update_data(array $steps)

Reverse the update steps from an array of data changes

'If' statements and custom methods will be skipped, for all other calls the reverse method of the tool class will be called

Parameters

array $steps

Update changes from migration

Return Value

array