Skip to content

Handle prefixed UUID PK default function#1

Open
dal-ioki wants to merge 1 commit into
mainfrom
fix-prefixed-uuid-primary-key-checker
Open

Handle prefixed UUID PK default function#1
dal-ioki wants to merge 1 commit into
mainfrom
fix-prefixed-uuid-primary-key-checker

Conversation

@dal-ioki
Copy link
Copy Markdown
Collaborator

Summary: treat primary keys as valid when their default function uses prefixed_uuid_generate_v4. Keep existing bigint/bigserial/uuid checks unchanged. Add a PostgreSQL-only spec for varchar primary keys generated by public.prefixed_uuid_generate_v4.

Treat primary keys backed by prefixed_uuid_generate_v4 as valid in PrimaryKeyTypeChecker and add a PostgreSQL spec covering varchar id defaults generated by that function.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

@asc-ioki asc-ioki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants