Search documentation of phoenix_kit

# PhoenixKit.Migrations.Postgres.V64 (phoenix_kit v1.7.87)

Copy Markdown View Source

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`.

## Summary

### Functions

down(opts)
up(opts)

## Functions

# down(opts)

# up(opts)