Fork me on GitHub
#luminus
<
2017-06-24
>
hackeryarn01:06:40

is there currently any way to use the init.sql file? It looks like luminus-migrations doesn't support init at this time.

hackeryarn04:06:33

awesome! thank you

hackeryarn13:06:22

so when I try to run init with (migrations/init {:store :database :db ""}) I get an error that CREATE DATABASE cannot urn inside a transaction block. Is there nay ways to specify that init should not urn in a transaction?

yogthos14:06:07

hmm I think that would need to be added as an option in migratus, I didn't consider that some databases don't allow running CREATE DATABASE as a transaction

yogthos15:06:39

updated migratus to accept a :init-in-transaction? false in the config to disable transactions for the :init-script

yogthos15:06:03

try version 0.9.7 to see if this addresses the issue

yogthos16:06:24

I try 😀

hackeryarn17:06:25

it looks like it's still getting run in a transactions. I did some investigating and the call to sql/db-do-prepared also takes a transaction argument. I tried setting it to false by default, as a test, and it still gets run a transaction... I am not sure where to go from there...

hackeryarn17:06:26

that call originates in migratus.database/run-init-script!