Skip to content

Commit a8e19d0

Browse files
committed
Fixed make-migrations
1 parent e4f26bf commit a8e19d0

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rorm-cli"
3-
version = "0.10.0"
3+
version = "0.10.1"
44
edition = "2021"
55
authors = ["myOmikron <git@omikron.dev>"]
66
repository = "https://github.com/rorm-orm/rorm-cli"

src/make_migrations/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ pub fn run_make_migrations(options: MakeMigrationsOptions) -> anyhow::Result<()>
172172
// Check if a existing field got altered
173173
for old_field in &old_model.fields {
174174
for new_field in &new_model.fields {
175+
if old_field.name != new_field.name {
176+
continue;
177+
}
178+
175179
// Check for differences
176180
if old_field.db_type != new_field.db_type
177181
|| old_field.annotations != new_field.annotations

0 commit comments

Comments
 (0)