Sigh. Database migrations — often nerve-wracking, always tedious, never a task I’ve been fond of. However, as you know, they’re often necessary. For us, they come up frequently and we often find we need to migrate their standalone blog to our multisite rig. Here's a script I wrote to ease the process.