This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-24
Channels
- # beginners (12)
- # boot (15)
- # chestnut (1)
- # cljs-dev (24)
- # cljsrn (2)
- # clojure (32)
- # clojure-dev (9)
- # clojure-news (1)
- # clojure-spec (7)
- # clojurescript (17)
- # cursive (12)
- # datomic (13)
- # hoplon (13)
- # instaparse (8)
- # jobs (3)
- # luminus (11)
- # lumo (10)
- # off-topic (2)
- # parinfer (2)
- # pedestal (2)
- # protorepl (3)
- # slack-help (1)
- # sql (6)
- # vim (1)
is there currently any way to use the init.sql file? It looks like luminus-migrations
doesn't support init at this time.
yeah that's an omission, I just pushed out [luminus-migrations "0.3.7"]
with an init
wrapper https://github.com/luminus-framework/luminus-migrations/blob/c0d2588e03811d07455df41eb943eb9558a952b1/src/luminus_migrations/core.clj#L17
awesome! thank you
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?
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
updated migratus to accept a :init-in-transaction? false
in the config to disable transactions for the :init-script
@yogthos you are amazing!
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...
that call originates in migratus.database/run-init-script!