Skip to content

Commit 0204038

Browse files
authored
Skip update table if type changed without storage type change. (#63)
1 parent b5b1547 commit 0204038

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ops/storages/postgres.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,12 @@ impl SetupStatusCheck {
583583
.value_fields_schema
584584
.iter()
585585
.filter(|(field_name, schema)| {
586-
existing
587-
.possible_versions()
588-
.any(|v| v.value_fields_schema.get(*field_name) != Some(schema))
586+
existing.possible_versions().any(|v| {
587+
v.value_fields_schema
588+
.get(*field_name)
589+
.map(to_column_type_sql)
590+
!= Some(to_column_type_sql(schema))
591+
})
589592
})
590593
.map(|(k, v)| (k.clone(), v.clone()))
591594
.collect(),

0 commit comments

Comments
 (0)