Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/setup/states.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down