Authorization Domain and Role Resource closes #321 #322

Merged
moritz merged 18 commits from feature/321_authorization_domain into main 2026-01-06 19:22:57 +01:00
2 changed files with 1 additions and 22 deletions
Showing only changes of commit ce1d5790a3 - Show all commits

View file

@ -13,7 +13,7 @@ defmodule Mv.Repo.Migrations.AddAuthorizationDomain do
end
create table(:roles, primary_key: false) do
add :id, :uuid, null: false, default: fragment("gen_random_uuid()"), primary_key: true
add :id, :uuid, null: false, default: fragment("uuid_generate_v7()"), primary_key: true
end
alter table(:users) do

View file

@ -1,21 +0,0 @@
defmodule Mv.Repo.Migrations.UpdateRoleToUuidv7 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(:roles) do
modify :id, :uuid, default: fragment("uuid_generate_v7()")
end
end
def down do
alter table(:roles) do
modify :id, :uuid, default: fragment("gen_random_uuid()")
end
end
end