Drizzle spontaneously trying to truncate my db
Today I opened up Drizzle Studio, connected to my Vercel Postgres database, and a modal popped up saying: 'Database truncation Deleting 57 rows from 17 tables.'
Now, I do have 17 tables and 57 entries but did not ask for anything to be truncated or deleted. This is completely spontaneous and extremely undesired. What sparked this action? Is there a setting on my Vercel Database or in Drizzle config I should be aware of?
I certainly don't want Drizzle spontaneously clearing out my Database.
Any help would be extremely appreciated.
Thanks in advance!
13 Replies
This also happened to me this morning with my PlanetScale database... almost giving me a heart attack!
to add in some details on what i did in case it's helpful:
- i had just switched database branches by adjusting my DATABASE_URL environment variable, and there is a difference in the schema between those two branches, so it's possible that drizzle studio thought i was doing a migration?
- i believe i was able to cancel the truncation before it completed, but this was the dialog box that was spontaneously shown
![No description](https://cdn.answeroverflow.com/1224418409178206258/image.png)
same
![No description](https://cdn.answeroverflow.com/1224419709768699936/image.png)
i Just got here to report this
whats going on????
april fools
oooooooo I am safe
@jaronheard,
Yes, I did the same thing, and I managed to abort it. In my case, I hadn't changed anything. Yesterday, I had made some very minor changes to the tables, so minor that they didn't even qualify as a migration.
Today, when I logged into Studio, I was greeted with that same modal.
I need an answer, lest this happens again.
@ByteBender , Arpil Fool's ?! Any official word on the matter?
Some master trolling going on, then!
Sorry everyone :tired:
But if you do something, you should be the best in it
It goes for April 1st as well
:sweating:
![No description](https://cdn.answeroverflow.com/1224445377151766690/Screenshot_2024-04-01_at_21.48.31.png)
:nomore:
The day we decided to lose all the users
Yikes
there was my 132211 rows of stock table worth millions, thanks for the heart attack