We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2a1966 commit 147c1b6Copy full SHA for 147c1b6
1 file changed
crates/core/src/db/update.rs
@@ -225,7 +225,9 @@ fn auto_migrate_database(
225
.indexes
226
.iter()
227
.find(|index| index.index_name[..] == index_name[..])
228
- .ok_or_else(|| anyhow::anyhow!("Index `{index_name}` not found in table `{}`", old_table_def.name))?;
+ .ok_or_else(|| {
229
+ anyhow::anyhow!("Index `{index_name}` not found in table `{}`", old_table_def.name)
230
+ })?;
231
232
log!(
233
logger,
@@ -513,7 +515,8 @@ mod test {
513
515
};
514
516
let index_name = RawIdentifier::new(canonical_index_name.as_str());
517
assert!(
- plan.steps.contains(&AutoMigrateStep::ChangeIndexSourceName(&index_name)),
518
+ plan.steps
519
+ .contains(&AutoMigrateStep::ChangeIndexSourceName(&index_name)),
520
"plan steps: {:?}",
521
plan.steps
522
);
0 commit comments