Closed ghost closed 5 years ago
Not exactly sure what you're requesting / proposing?
The first case with numerical prefixes is perfectly supported, so I guess this works as expected?
I am new to sql-migrate and assessing it for use in a project, but based on my limited knowledge I am guessing that @ivegotasthma is requesting that the new
command should use an incremental numeric prefix instead of the current time. Many other migration tools use this convention (like Django's), so it seems logical.
As you, @rubenv, pointed out there is nothing stopping the developer from renaming or creating new files with the preferred naming convention. Obviously, this is all subjective.
Hello,
The naming of the migrations with a timestamp creates usability issues. The Django model us prefixing them with a serially incremented 4 digit number makes figuring out which migration to edit very easy. Compared to figuring out which of the 5-10 migrations I've created recently by staring at very similar dates with no easy to distinguish characteristics. Now I rename the migrations on my own but it would be a nice boon to have this built-in.
Instead of:
Thanks