feat(vereinfacht): add DB schema, config and setting attributes
- Migrations: vereinfacht_contact_id on members, vereinfacht_* on settings - Mv.Config: Vereinfacht ENV/Settings helpers, vereinfacht_configured?, contact_view_url - Setting: vereinfacht_api_url, api_key, club_id
This commit is contained in:
parent
47284fee98
commit
a5a4d66655
6 changed files with 542 additions and 2 deletions
|
|
@ -0,0 +1,25 @@
|
|||
defmodule Mv.Repo.Migrations.AddVereinfachtSettings do
|
||||
@moduledoc """
|
||||
Updates resources based on their most recent snapshots.
|
||||
|
||||
This file was autogenerated with `mix ash_postgres.generate_migrations`
|
||||
"""
|
||||
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
alter table(:settings) do
|
||||
add :vereinfacht_api_url, :text
|
||||
add :vereinfacht_api_key, :text
|
||||
add :vereinfacht_club_id, :text
|
||||
end
|
||||
end
|
||||
|
||||
def down do
|
||||
alter table(:settings) do
|
||||
remove :vereinfacht_club_id
|
||||
remove :vereinfacht_api_key
|
||||
remove :vereinfacht_api_url
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue