crystal icon indicating copy to clipboard operation
crystal copied to clipboard

`PgSimplifyInflectionPreset` is renaming foreign key columns to `row`

Open Tam opened this issue 8 months ago • 0 comments

Summary

Previously a column like this id uuid primary key references public.block (id) on delete cascade would be renamed from blockByRowId to block using the simplify inflection preset. Now it renames the column to row.

Steps to reproduce

See https://github.com/Tam/postgraphile-id-now-row for a minimal reproduction.

Expected results

The column name should match the name of the table being referenced.

Actual results

The column is now named row.

Tam avatar Apr 30 '25 14:04 Tam