Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up(slightly) more readable migration filenames? #358
Comments
This comment has been minimized.
|
I'm pretty sure you can write it like Browsing through the migration code, it looks like for all entries in the .split("_")
.nth(0) |
This comment has been minimized.
|
the dates are prepended by the cli when calling e.g. indeed, as you've discovered, internally diesel seems to only use the first part:
hence this issue |
This comment has been minimized.
|
Ah, got it. So you basically want to change the generate output, not the underlying migration organisation stuff. |
This comment has been minimized.
|
yes, though having the identifiers in the migrations table also separated with an underscore might also be helpful i guess |
This comment has been minimized.
|
I'm fine with improving the readability of these. I like @killercup's suggestion of using dashes instead of underscores. I'd like to continue to keep the rules of "what is the version" simple (and right now that rule is anything before the first underscore) |
killercup
added
good first issue
help wanted
labels
Jan 1, 2017
ggrochow
referenced this issue
Mar 24, 2017
Merged
Generate more human-readable migration dir names #827
This comment has been minimized.
|
This can be closed now that #827 has been merged :) |
davidszotten commentedJun 17, 2016
What would you think about inserting an underscore between the date and time in the generated migration filenames?
for the odd occasion when typing (tab completing) in a terminal, i found it hard to scan the list of migrations to figure out which number to add to disambiguate and continue tab completing:
vs something like?