diff --git a/diesel_migrations/migrations_internals/src/connection.rs b/diesel_migrations/migrations_internals/src/connection.rs index c9171caddee9..59ec3582ff96 100644 --- a/diesel_migrations/migrations_internals/src/connection.rs +++ b/diesel_migrations/migrations_internals/src/connection.rs @@ -41,7 +41,7 @@ where } fn latest_run_migration_version(&self) -> QueryResult> { - use diesel::dsl::max; + use diesel::expression::dsl::max; __diesel_schema_migrations.select(max(version)).first(self) }