From 3c7c02a910bc512c14c9c5cb47eb12cc2b17a218 Mon Sep 17 00:00:00 2001 From: Jiangzhou He Date: Tue, 30 Sep 2025 22:53:22 -0700 Subject: [PATCH] docs: add the comment missing in previous commit --- src/setup/states.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/setup/states.rs b/src/setup/states.rs index de7154814..f633ffd9d 100644 --- a/src/setup/states.rs +++ b/src/setup/states.rs @@ -176,8 +176,15 @@ impl Display for ResourceIdentifier { #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] pub struct TargetSetupStateCommon { pub target_id: i32, + + /// schema_version_id indicates if a previous exported target row (as tracked by the tracking table) + /// is possible to be reused without re-exporting the row, on the exported values don't change. + /// + /// Note that sometimes even if exported values don't change, the target row may still need to be re-exported, + /// for example, a column is dropped then added back (which has data loss in between). pub schema_version_id: usize, pub max_schema_version_id: usize, + #[serde(default)] pub setup_by_user: bool, #[serde(default)]