Enabling voicemail via mysql for many extensions?

Is there a quick command I can execute via mysql to enable voicemail boxes for all the extensions?

I migrated from an old version and all the voicemail boxes are disabled.

Rather than using the interface to do this over many hours (a few hundred extensions).

Thanks in Advance!

No voicemail settings are not saved in MySQL. Its one of the few settings that are saved directly to a config file.

Use the bulk extensions module to export, update, and re-import the extensions.