Restoring to a previous version will revert supabase migration?

Hi,
v0 messed up badly, deleting many pages and components which I was unaware and i went too far. So now I want to come back to that version it started deleting the pages, etc. But I am wondering about what happens to my supabase migrations? Ideally those should be reverted complying to “Restore” action.