Hi Ryan
The Sun's magnetic poles flip about every 11 years. Scientist are still trying to understand how and why. There is a magnetic dynamo operating inside the Sun that is the underlying cause, and scientist are trying to develop computer models that can explain the Sun's cycle.
The planets have survived many, many flips of the Sun's poles.
Paulett