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): cummulative updates #6033

Merged
merged 2 commits into from Apr 25, 2024
Merged

Conversation

DanRibbens
Copy link
Contributor

@DanRibbens DanRibbens commented Apr 25, 2024

This is a mix of fixes that have been implemented in beta for 3.0 and getting merged to main for all 2.x users.

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.

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

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
@DanRibbens DanRibbens changed the title fix(db-postgres): fully functional dbNames by @jmikrut in #6023 fix(db-postgres): cummulative updates Apr 25, 2024
@DanRibbens DanRibbens merged commit c31b8dc into main Apr 25, 2024
33 checks passed
@DanRibbens DanRibbens deleted the fix/db-postgres-updates branch April 25, 2024 17:05
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