Fix typos

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Quentin Gliech
2025-12-04 16:32:13 +01:00
committed by GitHub
parent 6c5bba19f9
commit cca2015920
2 changed files with 2 additions and 2 deletions

View File

@@ -324,7 +324,7 @@ async fn migration_table_exists(conn: &mut PgConnection) -> Result<bool, sqlx::E
/// This function returns an error if the migration fails.
#[::tracing::instrument(name = "db.migrate", skip_all, err)]
pub async fn migrate(conn: &mut PgConnection) -> Result<(), MigrateError> {
// Get the database name and use it to derivate an advisory lock key. This
// Get the database name and use it to derive an advisory lock key. This
// is the same lock key used by SQLx default migrator, so that it works even
// with older versions of MAS, and when running through `cargo sqlx migrate run`
let database_name = sqlx::query_scalar!(r#"SELECT current_database() as "current_database!""#)