diff --git a/diesel_migrations/src/file_based_migrations.rs b/diesel_migrations/src/file_based_migrations.rs index ee7a7d15be85..43e451e462d9 100644 --- a/diesel_migrations/src/file_based_migrations.rs +++ b/diesel_migrations/src/file_based_migrations.rs @@ -163,7 +163,7 @@ impl SqlFileMigration { fn from_path(path: &Path) -> Result { if migrations_internals::valid_sql_migration_directory(path) { let metadata = TomlMetadataWrapper( - TomlMetadata::read_from_file(&path.join("metadata.toml"))? + TomlMetadata::read_from_file(&path.join("metadata.toml")).unwrap_or_default(), ); Ok(Self { base_path: path.to_path_buf(),