Move ErrorTracker to its own repo and file

Note that the SQlite adapter supports version 2 onwards.
This commit is contained in:
Claudio Ortolina
2025-01-23 10:40:36 +00:00
parent 6d64153ea8
commit eeaaf8b542
7 changed files with 35 additions and 4 deletions
+1
View File
@@ -10,6 +10,7 @@ defmodule MusicLibrary.Application do
children = [
MusicLibraryWeb.Telemetry,
MusicLibrary.Repo,
MusicLibrary.ErrorRepo,
{Ecto.Migrator,
repos: Application.fetch_env!(:music_library, :ecto_repos), skip: skip_migrations?()},
{DNSCluster, query: Application.get_env(:music_library, :dns_cluster_query) || :ignore},
+5
View File
@@ -0,0 +1,5 @@
defmodule MusicLibrary.ErrorRepo do
use Ecto.Repo,
otp_app: :music_library,
adapter: Ecto.Adapters.SQLite3
end