lukeed / ley

(WIP) Driver-agnostic database migrations
MIT License
258 stars 14 forks source link

Allow WIP migrations. #40

Open eduardvercaemer opened 3 months ago

eduardvercaemer commented 3 months ago

While working on a new migration, it is annoying to have to drop and reapply a migration.

Proposed Solution: Consider migrations with WIP in their name, they will be applied, but they won't be recorded to the migrations table. This allows a single command ley up to reapply WIP migrations.

karlhorky commented 1 week ago

Hmm, what would ley up do in the case of eg. CREATE TABLE? There would be a table already created and running this migration again would fail. If you mean that it would also run the down() function, that seems a bit unusual / unexpected.

Maybe it would be easier to create your own script in package.json which would run ley down && ley up?