From c0abf893d62e9d45d39283c4c46a4cce9bee6190 Mon Sep 17 00:00:00 2001 From: Ken van der Eerden <15888558+Ken-vdE@users.noreply.github.com> Date: Sat, 26 Oct 2024 14:48:57 +0200 Subject: [PATCH] just call table_name from entity. --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index e8f88bfe4..06f7fdcb3 100644 --- a/src/db.rs +++ b/src/db.rs @@ -371,7 +371,7 @@ where { match db { DatabaseConnection::SqlxPostgresPoolConnection(_) => { - let table_name = T::table_name(&entity); + let table_name = entity.table_name(); let query = format!("TRUNCATE TABLE {table_name} RESTART IDENTITY"); tracing::info!(query, "truncating postgres table {table_name}");