From f8a871a6a34e7e999c9a27ae61b6b0aa1c76f326 Mon Sep 17 00:00:00 2001 From: silverpill Date: Mon, 22 Jun 2026 19:07:23 +0000 Subject: [PATCH 1/2] Sort migrations --- refinery_core/src/util.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/refinery_core/src/util.rs b/refinery_core/src/util.rs index 4b416f45..da29f554 100644 --- a/refinery_core/src/util.rs +++ b/refinery_core/src/util.rs @@ -78,6 +78,7 @@ pub fn find_migration_files( let re = migration_type.file_match_re(); let file_paths = WalkDir::new(location) + .sort_by_key(|entry| entry.file_name().to_owned()) .into_iter() .filter_map(Result::ok) .map(DirEntry::into_path) From 33ef5a8d33bf54f1014480b95564cec910f2adc5 Mon Sep 17 00:00:00 2001 From: silverpill Date: Sat, 4 Jul 2026 18:51:43 +0000 Subject: [PATCH 2/2] Use sort_by_file_name() --- refinery_core/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refinery_core/src/util.rs b/refinery_core/src/util.rs index da29f554..c8d2804c 100644 --- a/refinery_core/src/util.rs +++ b/refinery_core/src/util.rs @@ -78,7 +78,7 @@ pub fn find_migration_files( let re = migration_type.file_match_re(); let file_paths = WalkDir::new(location) - .sort_by_key(|entry| entry.file_name().to_owned()) + .sort_by_file_name() .into_iter() .filter_map(Result::ok) .map(DirEntry::into_path)