Después de comer en ese restaurante, me fui por la pata abajo toda la noche.

[details=“English Translation”]After eating at that restaurant, I had the runs all night.
[/details]

(irse por la pata abajo - Wiktionary, the free dictionary)

(vulgar, colloquial, idiomatic) to shit oneself
Synonym: irse por la patilla