Skip to content
Merged
1 change: 1 addition & 0 deletions .changepacks/changepack_log_gBaId5Bxp-cRI-sa7EJH0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"changes":{"crates/vespertide/Cargo.toml":"Patch","crates/vespertide-macro/Cargo.toml":"Patch","crates/vespertide-query/Cargo.toml":"Patch","crates/vespertide-exporter/Cargo.toml":"Patch","crates/vespertide-naming/Cargo.toml":"Patch","crates/vespertide-loader/Cargo.toml":"Patch","crates/vespertide-core/Cargo.toml":"Patch","crates/vespertide-cli/Cargo.toml":"Patch","crates/vespertide-config/Cargo.toml":"Patch","crates/vespertide-planner/Cargo.toml":"Patch"},"note":"Fix enum diff logic, sqlite issue, Add verbose option on migration, Block revision command with add required column with fk","date":"2026-02-02T15:09:19.543239600Z"}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ local.db
settings.local.json
coverage
lcov.info
.sisyphus
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions crates/vespertide-cli/src/commands/diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,18 @@ fn format_action(action: &MigrationAction) -> String {
column.bright_cyan().bold()
)
}
MigrationAction::ModifyColumnType { table, column, .. } => {
MigrationAction::ModifyColumnType {
table,
column,
new_type,
} => {
format!(
"{} {}.{}",
"{} {}.{} {} {}",
"Modify column type:".bright_yellow(),
table.bright_cyan(),
column.bright_cyan().bold()
column.bright_cyan().bold(),
"->".bright_white(),
new_type.to_display_string().bright_cyan().bold()
)
}
MigrationAction::ModifyColumnNullable {
Expand Down Expand Up @@ -324,7 +330,7 @@ mod tests {
column: "id".into(),
new_type: ColumnType::Simple(SimpleColumnType::Integer),
},
format!("{} {}.{}", "Modify column type:".bright_yellow(), "users".bright_cyan(), "id".bright_cyan().bold())
format!("{} {}.{} {} {}", "Modify column type:".bright_yellow(), "users".bright_cyan(), "id".bright_cyan().bold(), "->".bright_white(), "integer".bright_cyan().bold())
)]
#[case(
MigrationAction::AddConstraint {
Expand Down
Loading