CMS by Drupal
Image Galleries Repaired
Whew. After literally a day of screwing around with the database, I know a lot more MySQL than I used to, and a lot more about Drupal's insides. I also got Image Galleries to work again (I think). I'm sure I'm the only one, but it was bugging me---I no longer even remember why.
I have a script I built to help hack this up, but I'm not showing it to anyone unless they explicitly ask me for it. It's really dangerous, and will probably just chew up the inside of your DB.
Note that there's also an image-update.php shipped with the Drupal 4.6 image.module. Don't forget to run it.
And whatever you do, don't delete the Image Galleries taxonomy vocabulary. It's a pain to get back.