Fork me on GitHub
#duct
<
2018-08-24
>
dadair19:08:07

Are there any plans for allowing clj files as migrations? Similar to rails for example. The clj files could be completely sideeffectful and return nothing, but be tracked through the same hashing-id mechanism. We have complex fixtures/seeds at our company and having programmatic migrations has been on our minds for a while to implement.

weavejester19:08:31

This wouldn’t be too hard to implement. You’d just need to write a init-key that returns a record that satisfies the ragtime.protocols/Migration protocol.

weavejester19:08:05

Or a collection of records if you wanted.

dadair19:08:24

Oh great, I’ll give that a try; thanks!

mariusz_jachimowicz09:08:01

and maybe this https://github.com/mariusz-jachimowicz-83/duct-migrations-auto-cfg if you want load migrations from folder rather than describing them one by one