Skip to content

Commit 31e66d9

Browse files
authored
docs: add the comment missing in previous commit (#1071)
1 parent 8822c3b commit 31e66d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/setup/states.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,15 @@ impl Display for ResourceIdentifier {
176176
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
177177
pub struct TargetSetupStateCommon {
178178
pub target_id: i32,
179+
180+
/// schema_version_id indicates if a previous exported target row (as tracked by the tracking table)
181+
/// is possible to be reused without re-exporting the row, on the exported values don't change.
182+
///
183+
/// Note that sometimes even if exported values don't change, the target row may still need to be re-exported,
184+
/// for example, a column is dropped then added back (which has data loss in between).
179185
pub schema_version_id: usize,
180186
pub max_schema_version_id: usize,
187+
181188
#[serde(default)]
182189
pub setup_by_user: bool,
183190
#[serde(default)]

0 commit comments

Comments
 (0)