Skip to content

Commit

Permalink
me: Clean all namespaces for the shadow database (#3531)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius de Bruijn committed Dec 19, 2022
1 parent 6990a56 commit 402388e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub async fn diagnose_migration_history(
.database_schema_from_diff_target(DiffTarget::Migrations(&applied_migrations), None, namespaces.clone())
.await;
let to = connector
.database_schema_from_diff_target(DiffTarget::Database, None, namespaces)
.database_schema_from_diff_target(DiffTarget::Database, None, namespaces.clone())
.await;
let drift = match from.and_then(|from| to.map(|to| connector.diff(from, to))).map(|mig| {
if connector.migration_is_empty(&mig) {
Expand All @@ -157,7 +157,7 @@ pub async fn diagnose_migration_history(
// TODO(MultiSchema): Not entirely sure passing no namespaces here is correct. Probably should
// also grab this as a CLI argument.
connector
.validate_migrations(&migrations_from_filesystem, None)
.validate_migrations(&migrations_from_filesystem, namespaces)
.await
.err()
} else {
Expand Down

0 comments on commit 402388e

Please sign in to comment.