Skip to content

Commit 1dd6197

Browse files
Add missing migration
1 parent 022e451 commit 1dd6197

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CREATE TABLE stats (
2+
stat TEXT PRIMARY KEY,
3+
val INTEGER NOT NULL
4+
);
5+
6+
--;;
7+
8+
INSERT INTO stats (stat, val) VALUES ('total_uploaded', 0);

test/flamebin/db_test.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
[taoensso.timbre :as timbre]))
1414

1515
(defmacro with-temp-db-and-state [& body]
16-
`(try (with-temp-db
16+
`(try (with-temp [:storage :db]
1717
(doto #'db/db mount/stop mount/start)
1818
~@body)
1919
(finally (doto #'db/db mount/stop mount/start))))

0 commit comments

Comments
 (0)