From de0e9c6fdc3c9344998d9d72e5e361a7f009c829 Mon Sep 17 00:00:00 2001 From: dullbananas Date: Tue, 1 Aug 2023 11:57:03 -0700 Subject: [PATCH] Only derive WithoutId for Community with "full" feature --- crates/db_schema/src/source/community.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/db_schema/src/source/community.rs b/crates/db_schema/src/source/community.rs index 237cd037f..dea865dcf 100644 --- a/crates/db_schema/src/source/community.rs +++ b/crates/db_schema/src/source/community.rs @@ -11,8 +11,8 @@ use ts_rs::TS; use typed_builder::TypedBuilder; #[skip_serializing_none] -#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize, WithoutId!)] -#[cfg_attr(feature = "full", derive(Queryable, Identifiable, TS))] +#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)] +#[cfg_attr(feature = "full", derive(Queryable, Identifiable, TS, WithoutId!))] #[cfg_attr(feature = "full", diesel(table_name = community))] #[cfg_attr(feature = "full", ts(export))] /// A community.