Skip to content

Commit

Permalink
Use MySQL8 in development (#943)
Browse files Browse the repository at this point in the history
Fixes #897
  • Loading branch information
matiasgarciaisaia authored Feb 27, 2024
1 parent 656fb0d commit d55a48d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion broker/rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{deps, [
{lager, ".*", {git , "git://github.com/basho/lager.git", {tag, "2.0.1"}}},
{yamler, "", {git, "https://github.com/waj/yamler.git"}},
{mysql, ".*", {git, "git://github.com/manastech/erlang-mysql-driver.git", "d2192d59dc3dac022f294e51a7af9f977181b147"}},
{mysql, ".*", {git, "https://github.com/manastech/erlang-mysql-driver.git", "32fc8be2bb6b78bc021204d535276f5554255c96"}},
{erl_dbmodel, ".*", {git, "https://github.com/manastech/erl-dbmodel.git"}},
{json, "0.0.2", {git, "https://github.com/hio/erlang-json.git"}},
{erjs, ".*", {git, "git://github.com/waj/erjs.git"}},
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ version: '2.0'

services:
db:
image: mysql:5.7
platform: linux/amd64
# image: mysql:5.7
# platform: linux/amd64
image: mysql:8.0
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
volumes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@
"counters" => [
{
"metric" => "calls",
"key" => { "date" => (to - 4.days).to_date.iso8601, "channel_id" => channel_1.id, "state" => "completed" },
"key" => { "date" => (to - 1.day).to_date.iso8601, "channel_id" => channel_1.id, "state" => "completed" },
"value" => 1
},
{
"metric" => "calls",
"key" => { "date" => (to - 1.day).to_date.iso8601, "channel_id" => channel_1.id, "state" => "completed" },
"key" => { "date" => (to - 4.days).to_date.iso8601, "channel_id" => channel_1.id, "state" => "completed" },
"value" => 1
}
]
Expand Down

0 comments on commit d55a48d

Please sign in to comment.