refactor: update migration for UUIDv7 and explicit FK constraint
- Add on_delete: :restrict to users.role_id foreign key - Update roles.id to use uuid_generate_v7() default - Regenerate resource snapshots
This commit is contained in:
parent
82ec4e565a
commit
402a78dd0a
3 changed files with 140 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ defmodule Mv.Repo.Migrations.AddAuthorizationDomain do
|
|||
column: :id,
|
||||
name: "users_role_id_fkey",
|
||||
type: :uuid,
|
||||
on_delete: :restrict,
|
||||
prefix: "public"
|
||||
)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue