The past tense of do the necessary is did the necessary.
The third-person singular simple present indicative form of do the necessary is does the necessary.
The present participle of do the necessary is doing the necessary.
The past participle of do the necessary is done the necessary.