We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dfe286 commit 249841fCopy full SHA for 249841f
lib/src/services/database_migration_service.dart
@@ -51,9 +51,10 @@ class DatabaseMigrationService {
51
_log.fine('Applied migration PR dates: $appliedPrDates');
52
53
// Sort migrations by prDate to ensure chronological application.
54
- _migrations.sort((a, b) => a.prDate.compareTo(b.prDate));
+ final sortedMigrations = [..._migrations]
55
+ ..sort((a, b) => a.prDate.compareTo(b.prDate));
56
- for (final migration in _migrations) {
57
+ for (final migration in sortedMigrations) {
58
if (!appliedPrDates.contains(migration.prDate)) {
59
_log.info(
60
'Applying migration PR#${migration.prId} (Date: ${migration.prDate}): '
0 commit comments