feat(diff): manual table mapping for schema compare

This commit is contained in:
jearhe authored and GitHub committed 2026-09-05 09:52:52 +08:00
1 parent d5a511b719
commit b5fcb3a832
28 files changed
+885 -122

No files matched your search

+7
View File
@@ -1826,6 +1826,7 @@ mod tests {
diff_type: "added".to_string(),
object_type: Some("table".to_string()),
name: "users".to_string(),
target_name: None,
columns: Some(vec![ColumnDiff {
diff_type: "added".to_string(),
name: "id".to_string(),
@@ -1858,6 +1859,7 @@ mod tests {
diff_type: "removed".to_string(),
object_type: Some("table".to_string()),
name: "users".to_string(),
target_name: None,
columns: Some(vec![ColumnDiff {
diff_type: "removed".to_string(),
name: "id".to_string(),
@@ -1987,6 +1989,7 @@ mod tests {
diff_type: "modified".to_string(),
object_type: Some("table".to_string()),
name: "users".to_string(),
target_name: None,
columns: Some(vec![]),
indexes: Some(vec![]),
foreign_keys: Some(vec![]),
@@ -2034,6 +2037,7 @@ mod tests {
diff_type: "added".to_string(),
object_type: Some("table".to_string()),
name: "test_table".to_string(),
target_name: None,
columns: Some(vec![]),
indexes: Some(vec![]),
foreign_keys: Some(vec![]),
@@ -2218,6 +2222,7 @@ mod tests {
diff_type: "added".to_string(),
object_type: Some("table".to_string()),
name: "users".to_string(),
target_name: None,
columns: Some(vec![]),
indexes: Some(vec![]),
foreign_keys: Some(vec![]),
@@ -2243,6 +2248,7 @@ mod tests {
diff_type: "removed".to_string(),
object_type: Some("table".to_string()),
name: "users".to_string(),
target_name: None,
columns: Some(vec![]),
indexes: Some(vec![]),
foreign_keys: Some(vec![]),
@@ -2399,6 +2405,7 @@ mod tests {
diff_type: "modified".to_string(),
object_type: Some("TABLE".to_string()),
name: "test_table".to_string(),
target_name: None,
columns: Some(vec![col_diff]),
..Default::default()
};