Hi all! We’re using Payload 3.0 (Next.js) with the Postgres adapter. Currently, we’re using push: true in local dev, but it’s causing friction:
The Issue: When Dev A pulls Dev B’s schema changes (like a column rename), the dev server triggers a "Data Loss Warning" because Drizzle tries to drop/add columns instead of renaming. This requires manual "yes/no" checks and DB babysitting.
The Question:
To reduce this mental overhead, do teams generally:
- Disable push: true locally and move to a strict migrate:create / migrate workflow for all local changes?
- Use a "Hybrid" approach (push while prototyping, then generate a migration once the feature is stable)?
- Use a custom script to automate migration creation/running on every dev server restart?
Any specific db adapter settings or package.json scripts you recommend to make the "pull and sync" experience seamless for teammates? Thanks!