This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-23
Channels
- # 100-days-of-code (2)
- # aws (1)
- # beginners (105)
- # boot (36)
- # calva (4)
- # cider (56)
- # clara (37)
- # cljdoc (16)
- # cljs-dev (19)
- # clojure (44)
- # clojure-dev (20)
- # clojure-italy (24)
- # clojure-nl (3)
- # clojure-serbia (2)
- # clojure-spec (15)
- # clojure-uk (44)
- # clojurescript (41)
- # code-reviews (3)
- # core-async (12)
- # cursive (24)
- # datomic (4)
- # emacs (1)
- # figwheel-main (10)
- # fulcro (168)
- # funcool (2)
- # hyperfiddle (15)
- # jobs (2)
- # jobs-discuss (79)
- # juxt (19)
- # lein-figwheel (1)
- # leiningen (2)
- # luminus (14)
- # mount (8)
- # nrepl (9)
- # off-topic (9)
- # other-languages (1)
- # pathom (32)
- # reitit (6)
- # ring-swagger (3)
- # shadow-cljs (10)
- # slack-help (11)
- # spacemacs (20)
- # sql (29)
- # tools-deps (28)
- # vim (29)
- # yada (4)
Wondering if this a good place to ask selmer Qs... is there a way to partition a collection in a template?
Howdy. I’m trying to set up a new luminus app with +mysql. I can’t seem to run the default migration. I get this error:
2018-10-23 14:34:00,206 [main] INFO migratus.core - Up 20181023140450-add-users-table
2018-10-23 14:34:00,244 [main] DEBUG migratus.migration.sql - found 1 up migrations
2018-10-23 14:34:00,261 [main] ERROR migratus.migration.sql - failed to execute command:
CREATE TABLE users
(id VARCHAR(20) PRIMARY KEY,
first_name VARCHAR(30),
last_name VARCHAR(30),
email VARCHAR(30),
admin BOOLEAN,
last_login TIMESTAMP,
is_active BOOLEAN,
pass VARCHAR(300));
2018-10-23 14:34:00,261 [main] ERROR migratus.migration.sql - Query was empty
2018-10-23 14:34:00,266 [main] ERROR migratus.database - Migration add-users-table failed because Query was empty backing out
2018-10-23 14:34:00,270 [main] DEBUG migratus.migration.sql - found 1 down migrations
2018-10-23 14:34:00,289 [main] ERROR migratus.migration.sql - failed to execute command:
DROP TABLE users;
2018-10-23 14:34:00,290 [main] ERROR migratus.migration.sql - Query was empty
2018-10-23 14:34:00,303 [main] DEBUG migratus.database - As expected, one of the statements failed in add-users-table while backing out the migration
java.sql.BatchUpdateException: Query was empty
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_45]
I think the jdbc URL is correct, because the schema_migrations table is created in the database successfully, and populated with the first row.
I’m using 0.5.7 of luminus-migrate and 1.1.3 of mitratus - I checked that there were no other versions in the .m2 directory just to be safe
Also, the repl doesn’t work… although lein run
works fine, when I try lein repl
I get this:
$> lein repl
2018-10-23 15:11:26,634 [main] DEBUG org.jboss.logging - Logging Provider: org.jboss.logging.Slf4jLoggerProvider
Error loading cider.nrepl.middleware.test: java.lang.RuntimeException: Invalid token: ::clojure.test/once-fixtures, compiling:(cider/nrepl/middleware/test.clj:103:57)
Exception in thread "main" java.lang.RuntimeException: Unable to resolve var: cider.nrepl.middleware.test/wrap-test in this context, compiling:(/private/var/folders/rv/16qh1sw961d42htdhlynfzgm0000gn/T/form-init8015114479140815326.clj:1:8421)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:7010)