You probably had a non-epileptic seizure which mimics the events of a proper epileptic seizure, and a migrane is a cause for it to happen.
Medically, the term seizure implies an epileptic seizure. The use of this word can also include sudden attacks of illness, loss of control, spasm or stroke.
Epileptic seizures can occur in someone who does not have epilepsy – as a consequence of head injury, drugs, toxins, eclampsia or febrile convulsions, for example.