lapis
lapis copied to clipboard
Modular migrations
As a feature request, it would be nice if there was a built-in feature to allow modular migrations. Instead of loading everything into an ever growing migrations.lua
it would be nice if we could just keep files in a /migrations
directory and iterate over the contents. It wouldn't be terribly hard to do in lua, but it would be nice if lapis migrate
just automatically looked for a set up like that.
This would definitely be useful. For now it can be accomplished by writing a small script in the migrations file to load all the files. Did you end up doing something like that? I