| 1 | <?php |
||
| 7 | class UpdateBundleVersionMigration implements Migration, FailIndependentMigration |
||
| 8 | { |
||
| 9 | /** @var MigrationState[] */ |
||
| 10 | protected $migrations; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param MigrationState[] $migrations |
||
| 14 | */ |
||
| 15 | public function __construct(array $migrations) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritdoc |
||
| 22 | */ |
||
| 23 | public function up(Schema $schema, QueryBag $queries) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Extracts latest version of successfully finished migrations for each bundle |
||
| 43 | * |
||
| 44 | * @return string[] |
||
| 45 | * key = bundle name |
||
| 46 | * value = version |
||
| 47 | */ |
||
| 48 | protected function getLatestSuccessMigrationVersions() |
||
| 66 | } |
||
| 67 |