Skip to content

Commit

Permalink
updated readme for postgres migration
Browse files Browse the repository at this point in the history
  • Loading branch information
StankovicMarko committed Sep 6, 2017
1 parent 3623964 commit 6aac2be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ Clojure web app for HTEMBH users

You will need [Leiningen][1] 2.0 or above installed.

MySQL with "htembh_dev" database created
[Postgresql][2] 9.3 or above installed
with "htembh_dev" database created
and user that can select and insert on all tables.

[1]: https://github.com/technomancy/leiningen

[2]: https://www.postgresql.org/

## Breaking changed

htembh 0.3.0
Project has been updated to be used on postgresql db

htembh 0.2.0

Project is updated to newest version of luminus
Expand All @@ -27,8 +32,8 @@ Add in root folder (luminus template):

and in it:

{:profiles/dev {:env {:database-url "mysql://localhost:3306/htembh_dev?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&user=USERNAME&password=PASSWORD"}}
:profiles/test {:env {:database-url "mysql://localhost:3306/htembh_test?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&user=USERNAME&password=PASSWORD"}}}
{:profiles/dev {:env {:database-url "jdbc:postgresql://localhost/htembh_dev?user=(USERNAME)password=(PASSWORD)"}}
:profiles/test {:env {:database-url "jdbc:postgresql://localhost/htembh_dev?user=(USERNAME)&password=(PASSWORD)"}}}



Expand All @@ -39,7 +44,7 @@ Run migrations:

Run sql scripts from resources/sql in this order:

topic.sql > questions.sql > responses.sql > connection.sql
topic.sql > questions.sql > responses.sql > qu_re_connection.sql


To start a web server for the application, run:
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
[metosin/muuntaja "0.3.2"]
[metosin/ring-http-response "0.9.0"]
[mount "0.1.11"]
[mysql/mysql-connector-java "6.0.5"]
;; [mysql/mysql-connector-java "6.0.5"]
[org.clojure/clojure "1.8.0"]
[org.clojure/clojurescript "1.9.854" :scope "provided"]
[org.clojure/tools.cli "0.3.5"]
Expand Down

0 comments on commit 6aac2be

Please sign in to comment.