Closed ThomasMeier closed 9 years ago
The ragtime.sql.files project has no connection to Leiningen, so it shouldn't refer to the project.clj file in any way, or assume it even exists.
The most obvious way to solve this that I can think of, is to change the migrations argument to be an s-expression instead of just a var name.
Roger that.
@ThomasMeier Have a look at https://github.com/juxt/joplin (which is built upon ragtime) and has this very feature.
@martintrojer Thanks, but I'd prefer to stick with ragtime, I'll just define a custom function to handle directory for now.
Not absolutely sure it fits with how ragtime is put together. But it matches what I think some people are asking for, to specify a directory from which to search for sql files via plugin options. I'm assuming here that a lot of people are using the leiningen plugin. In which case there is no way to pass a custom directory to load the sql files. So the sql.files namespace will use its default directory. What this addition does is look at the ragtime plugin options for a specified directory. Example usage would be:
I'd like that better than having to wade through Joplin.