Skip to content

Commit

Permalink
Merge pull request #5 from wildbit/db-init-fix
Browse files Browse the repository at this point in the history
Fix a failure to create required MySQL tables.
  • Loading branch information
temochka authored Sep 10, 2016
2 parents 9236bf4 + b6c21d9 commit 46b00fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ All notable changes to this project are documented in this file. This change log
## [Unreleased]

### Fixed
- Internal: Fixed possible test failures in non-UTC timezones.
- Internal: Fixed graceful shutdown test.
- Fix `queue/initialize!` that fails to create MySQL tables due to index conflict.
- Internal: Fix possible test failures in non-UTC timezones.
- Internal: Fix graceful shutdown test.

### Changed
- Use JVM time when querying for pending jobs instead of relying on UTC.
Expand Down
2 changes: 1 addition & 1 deletion src/mysql_queue/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@
(defn initialize!
"Create required MySQL tables if they don't exist. Returns true."
[db-conn]
(queries/create-jobs! db-conn)
(queries/create-scheduled-jobs! db-conn)
(queries/create-jobs! db-conn)
true)

(defn schedule-job
Expand Down
3 changes: 1 addition & 2 deletions test/mysql_queue/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

(defn setup-db
[f]
(queries/create-scheduled-jobs! db-conn)
(queries/create-jobs! db-conn)
(initialize! db-conn)
(f))

(defn clean-up
Expand Down

0 comments on commit 46b00fe

Please sign in to comment.