- 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
25 lines
569 B
Elixir
25 lines
569 B
Elixir
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
|