We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4f26bf commit a8e19d0Copy full SHA for a8e19d0
2 files changed
Cargo.toml
@@ -1,6 +1,6 @@
1
[package]
2
name = "rorm-cli"
3
-version = "0.10.0"
+version = "0.10.1"
4
edition = "2021"
5
authors = ["myOmikron <git@omikron.dev>"]
6
repository = "https://github.com/rorm-orm/rorm-cli"
src/make_migrations/mod.rs
@@ -172,6 +172,10 @@ pub fn run_make_migrations(options: MakeMigrationsOptions) -> anyhow::Result<()>
172
// Check if a existing field got altered
173
for old_field in &old_model.fields {
174
for new_field in &new_model.fields {
175
+ if old_field.name != new_field.name {
176
+ continue;
177
+ }
178
+
179
// Check for differences
180
if old_field.db_type != new_field.db_type
181
|| old_field.annotations != new_field.annotations
0 commit comments