MigrationComparator
MigrationComparator.php
:
21
Interface
Determines the order migrations are executed in, across every configured migration_directory merged together by {@see CompositeMigrationStorage}. Override the default {@see AlphabeticalMigrationComparator} service to customize ordering — e.g. to always run one directory's migrations before another's.
Methods¶
compare()
¶
MigrationComparator.php
:
23
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $a | Migration | - | - |
| $b | Migration | - | - |
Return values
int