Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(db-postgres): fully functional dbNames #6023

Merged
merged 5 commits into from
Apr 25, 2024
Merged

fix(db-postgres): fully functional dbNames #6023

merged 5 commits into from
Apr 25, 2024

Conversation

jmikrut
Copy link
Member

@jmikrut jmikrut commented Apr 25, 2024

Description

Fixes some holes in the MVP logic for dbName. They now work properly across top-level collections / globals, arrays, blocks, etc - and I've added tests to ensure.

@jmikrut jmikrut changed the title Fix/db name fix(db-postgres): fully functional dbNames Apr 25, 2024
@jmikrut jmikrut merged commit 629d7c3 into beta Apr 25, 2024
27 of 30 checks passed
@jmikrut jmikrut deleted the fix/db-name branch April 25, 2024 02:42
DanRibbens added a commit that referenced this pull request Apr 25, 2024
fix(db-postgres): postgres version id bug by @jmikrut in #6026
fix(db-postgres): postgres uuid by @denolfe in #6003

BREAKING CHANGES
@payloadcms/db-postgres
fix(db-postgres): shortens relation names (#5976)
Shortens the name of auto-generated Postgres relations. Should dramatically reduce errors for users in PG. Also handles an issue with HMR in Postgres by properly destroying the database adapter before re-initializing it.

This change will require anyone running @payloadcms/db-postgres to create a new migration and run it against their database.

Run your application in development
pnpm payload migrate:create will generate the new migration
pnpm payload migrate will run the migration against your DB
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.

None yet

1 participant