Primary Residence Flip

I have a primary residence with about $200,000 in equity. I am taking a new position and need to move. I need to purchase a house at my new location for $145,000, no or very little money down. I intend to pay off the new house once my current house sells. I have credit issues.