mitgliederverwaltung/lib/mv/repo.ex
Moritz 9a14cedc14
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/promote/production Build is passing
fix(repo): define all_tenants/0 as empty for non-multitenant schema
2026-06-02 12:26:35 +02:00

30 lines
710 B
Elixir

defmodule Mv.Repo do
use AshPostgres.Repo,
otp_app: :mv
@impl true
def installed_extensions do
# Add extensions here, and the migration generator will install them.
["ash-functions", "citext", "pg_trgm"]
end
# Don't open unnecessary transactions
# will default to `false` in 4.0
@impl true
def prefer_transaction? do
false
end
@impl true
def min_pg_version do
%Version{major: 17, minor: 2, patch: 0}
end
# This app does not use schema-based multitenancy, so there are no tenant
# schemas to migrate. Returning [] keeps the AshPostgres callback total
# rather than raising the default "not defined" error.
@impl true
def all_tenants do
[]
end
end