Scoliosis can be structural or nonstructural. In your case, you may have been suffering from nonstructural scoliosis and this can be treated with proper stretching exercises. Though doing these exercises may really be painful at the start as the spine has totally assumed this abnormal curvature and muscles have become tight. Taking pain killers will be of help while doing these exercises at the same time.Sometimes you just have to bear the pain because pain arises when there is a problem, injury or deformity. To stop this pain, then the one causing it should be corrected or resolved.
Before engaging in the exercise program, you have to know more about scoliosis to better understand the nature of the condition and to appreciate the exercises as well.
Please check these links for more details: