From 4701461b1f27ee23f660014c3c14fedeb6a98964 Mon Sep 17 00:00:00 2001 From: slawkens Date: Thu, 21 Aug 2025 20:54:58 +0200 Subject: [PATCH] Add some comment about optional sorting, into migrate:run command --- system/src/Commands/MigrateRunCommand.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/system/src/Commands/MigrateRunCommand.php b/system/src/Commands/MigrateRunCommand.php index 3bdb1452..0c8aa325 100644 --- a/system/src/Commands/MigrateRunCommand.php +++ b/system/src/Commands/MigrateRunCommand.php @@ -45,6 +45,22 @@ class MigrateRunCommand extends Command $down = $input->getOption('down') ?? false; + /** + * Sort according to $down option. + * Do we really want it? + * Or should we use order provided by user, + * even when it's not sorted correctly? + * Leaving it for consideration. + */ + /* + if ($down) { + rsort($ids); + } + else { + sort($ids); + } + */ + foreach ($ids as $id) { $this->executeMigration($id, $io, !$down); }