lapis icon indicating copy to clipboard operation
lapis copied to clipboard

Modular migrations

Open ryanford opened this issue 6 years ago • 1 comments

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.

ryanford avatar Dec 17 '17 13:12 ryanford

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

leafo avatar Feb 21 '18 17:02 leafo