Skip to content

Instantly share code, notes, and snippets.

@litzinger
Last active August 24, 2023 18:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save litzinger/f22e340f6068bbd91d9d5f7c8042c697 to your computer and use it in GitHub Desktop.
Save litzinger/f22e340f6068bbd91d9d5f7c8042c697 to your computer and use it in GitHub Desktop.
ExpressionEngine Quick Tips

Forcing a database update

If you're in a situation where you've already updated EE, but then need to run the database upgrades again, this will help force the installer to run the updates again. This situation may occur if you've upgrade a local or dev version of a site, but need to grab a newer version of the production database to get it up-to-date too.

  1. Change $config['app_version'] to the previous version you've already upgraded from.

  2. Add define('INSTALL_MODE', TRUE); to your admin.php file, then reload admin.php. Clicking the version number in the footer should show an update is available, even though it may match what says is currently installed. Run the update normally, then remove define('INSTALL_MODE', TRUE); from your admin.php file.

OR

Add EE_INSTALL_MODE=FALSE to your .env.php file in the root of your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment