Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
93 stars 13 forks source link

Unexpected error during makemigration [butane 3.0] #4

Closed ieow closed 3 years ago

ieow commented 3 years ago

I encounter the error below when trying to makemigration with butane 3.0 Encountered unexpected error: (De)serialization error unknown variant KnownId, expected Known or Deferred at line 1 column 62

It works fine when I downgrade back to 2.1

To recreate : use butane 3.0 butane makemigration init

Electron100 commented 3 years ago

@ieow did you upgrade butane_cli to 0.3 as well? If you were using butane=0.3 as your library dependency, but running 0.2.1 of the butane cli, that could cause this error.

ieow commented 3 years ago

Yes, I didnt upgraded butane_cli v0.3.0 I upgraded it and it works fine now! Thanks