#DATA LOSS WARNING: Possible data loss detected if schema is pushed.

2 messages · Page 1 of 1 (latest)

mossy cargo
#

Hi, I have set up my PayloadCMS 3.0 with Next.js 15 and Postgres Database. I have a problem with changes in my payload config because every change needs to be pushed into the database. The problem is that I have also other tables in my database that are not related to the Payload CMS at all and while pushing it wants to delete them. How can I make Payload CMS not delete my not related tables while changing payload config collection. I tried something with migrations using drizzle but I don't think I can figure it out how to do it properly. Any ideas how to fix it?

? Warnings detected during schema push: 

· You're about to delete photos table with 6 items

DATA LOSS WARNING: Possible data loss detected if schema is pushed.