Move SQLite extension loading to config/runtime.exs
Addresses deprecation mentioned at https://hexdocs.pm/ecto/Ecto.Repo.html#c:init/2
This commit is contained in:
@@ -28,6 +28,11 @@ if user = System.get_env("LAST_FM_USER") do
|
||||
config :music_library, LastFm, user: user
|
||||
end
|
||||
|
||||
config :music_library, MusicLibrary.Repo,
|
||||
load_extensions: [
|
||||
MusicLibrary.Repo.extension_path("unicode")
|
||||
]
|
||||
|
||||
if config_env() == :prod do
|
||||
database_path =
|
||||
System.get_env("DATABASE_PATH") ||
|
||||
|
||||
Reference in New Issue
Block a user