-
I am trying to follow this example to create migrations for my database automatically: However, that guide is either incomplete or I am doing something wrong (or both). This is my build.yaml, taken straight from the guide:
The name of the database and the path to its .dart file is correct. However, when running
I also tried using the schema instead, but then a very similar error appears with drift_dev not recognizing key Not really sure how to proceed here. I could of course create manual migrations, but I'd rather avoid that if anyhow possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Could you check that you're on If you're on 2.20.0 or below, you can still follow this and this to generate essentially the same thing, the |
Beta Was this translation helpful? Give feedback.
Could you check that you're on
drift_dev
version 2.21.0? Themake-migrations
command was added in that version.If you're on 2.20.0 or below, you can still follow this and this to generate essentially the same thing, the
make-migrations
command essentially combines the two steps for you.