This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-17
Channels
- # announcements (1)
- # babashka (26)
- # beginners (28)
- # biff (8)
- # calva (45)
- # cider (62)
- # clara (3)
- # clj-kondo (34)
- # cljfx (1)
- # clojure (72)
- # clojure-belgium (1)
- # clojure-canada (13)
- # clojure-conj (2)
- # clojure-dev (3)
- # clojure-europe (19)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-uk (8)
- # clojurescript (10)
- # clr (36)
- # core-logic (13)
- # cursive (2)
- # datalevin (2)
- # datomic (23)
- # fulcro (13)
- # graphql (23)
- # instaparse (1)
- # introduce-yourself (4)
- # jobs (1)
- # jobs-discuss (13)
- # lsp (30)
- # luminus (7)
- # malli (2)
- # off-topic (57)
- # polylith (13)
- # portal (5)
- # reagent (32)
- # reitit (6)
- # remote-jobs (1)
- # shadow-cljs (25)
- # xtdb (12)
Hi everyone. I'm using HoneySQL in my Luminus project, and I'd like to use it for migrations as well. I'm trying to use the Drift library to accomplish this. I deploy my project to AWS BeanStalk as a .jar file, so I'm looking for a way around using the 'lein migrate' command to actually run the migrations. Is there a way to run the migrations from within the project? Is there a different solution I should be thinking about?
Depending on the flags you added while generating your Luminus template, you should have the function luminus-migrations.core/migrate
you can call from within the code. In my case, there is even a wrapper in the user
namespace, a function called migrate
, which calls it with the configured DB connection
according to the github that library is a wrapper around migratus. i'm using drift
Ah sorry, I misread that
no worries
I have no experience with it, but the Leiningen plugin seems to call the library directly: https://github.com/macourtney/drift/blob/b5cf735ab41ff2c95b0b1d9cf990faa342353171/src/leiningen/migrate.clj#L11