dbdelta failing with error: “WordPress database error Table ‘wp_2_myPlugin’ already exists

I’ve never had any luck with dbdelta, it has worked spottily at best, and when I code, that’s just not good enough. My method for handling DB changes is to use database versions. So when I create a plugin, I also set the database version, then if I want to update the database, I do a check against the current dbversion (almost always stored in the wp_options table), if it’s less than the new DB version, I’ll run a series of updates. I’ll repeat the process if I release another update that requires database structure changes. This allows users to update the plugin, even from a very old version, and still be assured that the database format will be correct. This method also holds up if the data needs to be transformed and re-entered into the database, as it will update through every structural change as though the plugin were being updated incrementally.