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
jaronheard
jaronheard6mo ago
This also happened to me this morning with my PlanetScale database... almost giving me a heart attack!
jaronheard
jaronheard6mo ago
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
ByteBender
ByteBender6mo ago
same
ByteBender
ByteBender6mo ago
No description
ByteBender
ByteBender6mo ago
i Just got here to report this whats going on???? april fools oooooooo I am safe
nr7751
nr77516mo ago
@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?
nr7751
nr77516mo ago
Some master trolling going on, then!
Andrii Sherman
Andrii Sherman6mo ago
Sorry everyone :tired: But if you do something, you should be the best in it It goes for April 1st as well
Alfonso
Alfonso6mo ago
:sweating:
No description
Andrii Sherman
Andrii Sherman6mo ago
:nomore: The day we decided to lose all the users
xeon06
xeon066mo ago
Yikes
ByteBender
ByteBender6mo ago
there was my 132211 rows of stock table worth millions, thanks for the heart attack
Want results from more Discord servers?
Add your server