For what I undestood the /codewiki/ is still working with the old database, right? If so, back it up and do the upgrade process again on the live version. You already saw it's working in the /tempwiki/ so it should be fine.
By taking a look at Mediawiki's Upgrade Documentation, they address the live upgrading issue this way:
Can my wiki stay online while it is upgrading? Generally yes, however Git may temporarily (for a few seconds) break it.
If you are upgrading between minor releases of MediaWiki, all you need
to do is update the source files.
Note: the following assumes you have command line access. If you are
upgrading between major releases of MediaWiki, the preferred procedure
is as follows:
- Unpack the new version of MediaWiki into a new directory
- Prepare that new directory: copy your current LocalSettings.php from the old directory, copy any installed extensions and custom skins
- In the release notes for the new version, see if any changes need to be made to LocalSettings.php.
- Place the database in read-only mode by inserting the following variable into LocalSettings.php in the old directory - users will see
this message if they attempt an edit during the upgrade process:
$wgReadOnly = 'Upgrading to MediaWiki 1.24.0';
- Run the update script or the web updater in the new directory.
- Copy the images from the images sub-directory from the old directory to the new directory.
- Swap the old directory and the new directory.
Seems like LocalSettings.php holds the information you need to edit in order to make it work.