From a242333701383cc12b548a795b3dc9ac48f42670 Mon Sep 17 00:00:00 2001 From: dullbananas Date: Tue, 28 May 2024 06:57:32 -0700 Subject: [PATCH] fix strip_prefix order --- crates/db_schema/src/schema_setup/diff_check.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/db_schema/src/schema_setup/diff_check.rs b/crates/db_schema/src/schema_setup/diff_check.rs index 04ebbb5c5..da5ac4e1b 100644 --- a/crates/db_schema/src/schema_setup/diff_check.rs +++ b/crates/db_schema/src/schema_setup/diff_check.rs @@ -279,13 +279,13 @@ fn after_first_occurence<'a>(s: &'a str, pat: &str) -> &'a str { } fn after_skipped_trigger_name(s: &str) -> Option<&str> { - s.strip_prefix("refresh_comment") - .or_else(|| s.strip_prefix("refresh_comment_like")) - .or_else(|| s.strip_prefix("refresh_community")) + s.strip_prefix("refresh_comment_like") + .or_else(|| s.strip_prefix("refresh_comment")) .or_else(|| s.strip_prefix("refresh_community_follower")) .or_else(|| s.strip_prefix("refresh_community_user_ban")) - .or_else(|| s.strip_prefix("refresh_post")) + .or_else(|| s.strip_prefix("refresh_community")) .or_else(|| s.strip_prefix("refresh_post_like")) + .or_else(|| s.strip_prefix("refresh_post")) .or_else(|| s.strip_prefix("refresh_private_message")) .or_else(|| s.strip_prefix("refresh_user")) }