This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-13
Channels
- # babashka (1)
- # beginners (11)
- # cider (8)
- # clj-kondo (7)
- # clojure (35)
- # clojure-italy (2)
- # clojurescript (6)
- # conjure (5)
- # datomic (10)
- # duct (7)
- # fulcro (9)
- # helix (2)
- # introduce-yourself (5)
- # lsp (3)
- # malli (7)
- # meander (3)
- # off-topic (8)
- # pathom (3)
- # podcasts-discuss (2)
- # portal (9)
- # reitit (7)
- # releases (3)
- # shadow-cljs (43)
- # sql (25)
- # tools-deps (3)
Hello, I created a new duct project using
lein new duct foobar +postgres
Then I added [duct/migrator.ragtime "0.3.2"]
to :dependencies
Next I modified dev/config.edn to add the following key:
[:duct.migrator.ragtime/sql :foo.migration/create-foo-table]
{:up ["CREATE TABLE foo (id int);"]
:down ["DROP TABLE foo;"]}}
But when I ran (dev)
(go)
no migrations are created in ragtime_migrations?In the log file, I can see that the ragtime is trying to read from the migrations table:
INFO [duct.database.sql.hikaricp:30] - :duct.database.sql/query {:query ["SELECT id FROM ragtime_migrations ORDER BY created_at"], :elapsed 1}
So I’m following the instructions from:
https://github.com/duct-framework/duct/wiki/Configuration#top-level-components
But when I included this (derive :myapp/scheduler :duct/daemon)
there’s an error:
:reloading (myapp.scheduler)
:error-while-loading myapp.scheduler
#error {
:cause "Assert failed: (or (class? tag) (and (instance? clojure.lang.Named tag) (namespace tag)))"
:via