Skip to content

Commit 121be31

Browse files
authored
Merge pull request #16 from dev-five-git/fix-action-conv
Fix action conv
2 parents fb2d2d9 + f9e1464 commit 121be31

40 files changed

+1567
-403
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"crates/vespertide-exporter/Cargo.toml":"Patch","crates/vespertide-config/Cargo.toml":"Patch","crates/vespertide-macro/Cargo.toml":"Patch","crates/vespertide-query/Cargo.toml":"Patch","crates/vespertide-planner/Cargo.toml":"Patch","crates/vespertide-core/Cargo.toml":"Patch","crates/vespertide-cli/Cargo.toml":"Patch","crates/vespertide/Cargo.toml":"Patch"},"note":"Add auto increment","date":"2025-12-14T15:20:16.940927400Z"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"crates/vespertide-exporter/Cargo.toml":"Patch","crates/vespertide/Cargo.toml":"Patch","crates/vespertide-cli/Cargo.toml":"Patch","crates/vespertide-planner/Cargo.toml":"Patch","crates/vespertide-query/Cargo.toml":"Patch","crates/vespertide-core/Cargo.toml":"Patch","crates/vespertide-config/Cargo.toml":"Patch","crates/vespertide-macro/Cargo.toml":"Patch"},"note":"Add fk validation","date":"2025-12-14T15:20:26.765917400Z"}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"changes":{"crates/vespertide/Cargo.toml":"Patch","crates/vespertide-core/Cargo.toml":"Patch","crates/vespertide-exporter/Cargo.toml":"Patch","crates/vespertide-config/Cargo.toml":"Patch","crates/vespertide-planner/Cargo.toml":"Patch","crates/vespertide-query/Cargo.toml":"Patch","crates/vespertide-cli/Cargo.toml":"Patch","crates/vespertide-macro/Cargo.toml":"Patch"},"note":"Fix exporting logic","date":"2025-12-14T14:48:31.944130300Z"}

Cargo.lock

Lines changed: 110 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/vespertide-cli/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ vespertide-exporter = { workspace = true }
2727
tempfile = "3"
2828
serial_test = "3"
2929
rstest = "0.26"
30+
assert_cmd = "2"
31+
predicates = "3"
3032

3133
[[bin]]
3234
name = "vespertide"

crates/vespertide-cli/src/commands/diff.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn format_action(action: &MigrationAction) -> String {
146146

147147
fn format_constraint_type(constraint: &vespertide_core::TableConstraint) -> String {
148148
match constraint {
149-
vespertide_core::TableConstraint::PrimaryKey { columns } => {
149+
vespertide_core::TableConstraint::PrimaryKey { columns, .. } => {
150150
format!("PRIMARY KEY ({})", columns.join(", "))
151151
}
152152
vespertide_core::TableConstraint::Unique { name, columns } => {
@@ -311,6 +311,7 @@ mod tests {
311311
MigrationAction::AddConstraint {
312312
table: "users".into(),
313313
constraint: vespertide_core::TableConstraint::PrimaryKey {
314+
auto_increment: false,
314315
columns: vec!["id".into()],
315316
},
316317
},
@@ -354,6 +355,7 @@ mod tests {
354355
MigrationAction::RemoveConstraint {
355356
table: "users".into(),
356357
constraint: vespertide_core::TableConstraint::PrimaryKey {
358+
auto_increment: false,
357359
columns: vec!["id".into()],
358360
},
359361
},

0 commit comments

Comments
 (0)