Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it compatible with mariadb #71

Merged
merged 2 commits into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/version.ex
Expand Up @@ -14,7 +14,11 @@ defmodule PaperTrail.Version do
field(:item_id, Application.get_env(:paper_trail, :item_type, :integer))
field(:item_changes, :map)
field(:originator_id, Application.get_env(:paper_trail, :originator_type, :integer))
field(:origin, :string, read_after_writes: true)

field(:origin, :string,
read_after_writes: Application.get_env(:paper_trail, :origin_read_after_writes, true)
)

field(:meta, :map)

if PaperTrail.RepoClient.originator() do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Expand Up @@ -20,7 +20,7 @@ defmodule PaperTrail.Mixfile do
# Type "mix help compile.app" for more information
def application do
[
applications: [:logger, :postgrex, :ecto, :runtime_tools]
applications: [:logger, :ecto, :runtime_tools]
]
end

Expand Down
2 changes: 2 additions & 0 deletions test/test_helper.exs
@@ -1,3 +1,5 @@
Application.start(:postgrex)

Mix.Task.run("ecto.drop")
Mix.Task.run("ecto.create")
Mix.Task.run("ecto.migrate")
Expand Down