# `PhoenixKit.Migrations.Postgres.V64`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.165/lib/phoenix_kit/migrations/postgres/v64.ex#L1)

V64: Fix user token check constraint for UUID-only inserts.

The V16 migration added a check constraint `user_id_required_for_non_registration_tokens`
that requires `user_id IS NOT NULL` for non-registration tokens. After the UUID cleanup,
the schema only sets `user_uuid` (not `user_id`), so session token inserts fail.

This migration replaces the constraint to check `user_uuid` instead of `user_id`.

# `down`

# `up`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
