Skip to content

Commit

Permalink
Merge pull request #24 from bbalser/create-ts-default
Browse files Browse the repository at this point in the history
Fix create_ts migration default
  • Loading branch information
jdenen authored Oct 14, 2019
2 parents 66c418c + 5208110 commit e4297d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/brook/storage/redis/migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule Brook.Storage.Redis.Migration do
defp ensure_event_fields(event) do
event
|> Map.update(:author, "migrated_default", fn author -> author end)
|> Map.update(:create_ts, "00:00:00.000000", fn ts -> ts end)
|> Map.update(:create_ts, 0, fn ts -> ts end)
|> Map.update(:forwarded, false, fn boolean -> boolean end)
end
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Brook.MixProject do
def project do
[
app: :brook,
version: "0.4.3",
version: "0.4.4",
elixir: "~> 1.8",
description: description(),
package: package(),
Expand Down
2 changes: 1 addition & 1 deletion test/integration/brook/storage/migration_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ defmodule Brook.Storage.Redis.MigrationTest do
Migration.migrate(@instance, redix, @namespace)

assert {:ok, [%Brook.Event{create_ts: timestamp}]} = Redis.get_events(@instance, @collection, 4)
assert timestamp == "00:00:00.000000"
assert timestamp == 0
end

defp start_redis(_context) do
Expand Down

0 comments on commit e4297d8

Please sign in to comment.