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
jaronheard8mo ago
This also happened to me this morning with my PlanetScale database... almost giving me a heart attack!
jaronheard
jaronheard8mo 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
ByteBender8mo ago
same
ByteBender
ByteBender8mo ago
No description
ByteBender
ByteBender8mo ago
i Just got here to report this whats going on???? april fools oooooooo I am safe
nr7751
nr7751OP8mo 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
nr7751OP8mo ago
Some master trolling going on, then!
Andrii Sherman
Andrii Sherman8mo ago
Sorry everyone :tired: But if you do something, you should be the best in it It goes for April 1st as well
Alfonso
Alfonso8mo ago
:sweating:
No description
Andrii Sherman
Andrii Sherman8mo ago
:nomore: The day we decided to lose all the users
xeon06
xeon068mo ago
Yikes
ByteBender
ByteBender8mo 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