Initial commit on Forgejo
All checks were successful
CI and deploy / Test (push) Successful in 4m52s
CI and deploy / Deploy production (push) Successful in 23s

Fresh repository history for elektrine/tarakan hosted at
https://git.elektrine.com/elektrine/tarakan.
This commit is contained in:
Maxfield Luke 2026-07-29 04:43:40 -04:00
commit af6077b9c3
455 changed files with 78366 additions and 0 deletions

View file

@ -0,0 +1,22 @@
defmodule Tarakan.Repo.Migrations.AllowReviewVerifierCredentials do
use Ecto.Migration
@with_reviews "scopes <@ ARRAY['tasks:read', 'tasks:claim', 'contributions:write', 'findings:submit', 'reports:write', 'reviews:read', 'reviews:verify']::varchar[]"
@without_reviews "scopes <@ ARRAY['tasks:read', 'tasks:claim', 'contributions:write', 'findings:submit', 'reports:write']::varchar[]"
def up do
drop constraint(:api_credentials, :api_credentials_scopes_must_be_valid)
create constraint(:api_credentials, :api_credentials_scopes_must_be_valid,
check: @with_reviews
)
end
def down do
drop constraint(:api_credentials, :api_credentials_scopes_must_be_valid)
create constraint(:api_credentials, :api_credentials_scopes_must_be_valid,
check: @without_reviews
)
end
end