Replies: 1 comment 1 reply
-
It's up to you if you keep this file after the first migration was added. Strictly speaking it's not necessary at that point anymore. We still generate this file as it's possible for diesel-cli to not generate default migrations if that's requested by a cli flag or because there are just no default migrations for the given backend. We would likely accept a PR that removes generating this file if there is a default migration. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've noticed that there is a file named
.keep
in the migration directory after runningdiesel setup
. Since it seems to be there only to make git keep the directory tracked, does it need to be in source control after the migrations directory has any files in it?Also, I also noticed that
diesel setup
automatically creates the first migration with the functions/triggers for the migration table. Since those exist from the timediesel setup
is run, does that.keep
file even need to be generated anymore? As a newbie to diesel, it seems pointless unless there is some other reason for that file.Beta Was this translation helpful? Give feedback.
All reactions