October 2008 Archives

Do Not Upgrade Plugin

| No Comments

Brad created a small plugin on the fly as a temporary fix to solve an upgrade issue which I’ve documented here for your pleasure… =)

This plugin will disable/stop/cancel all upgrades to a Movable Type installation.

Because some plugins require upgrade scripts, the DoNotUpgrade plugin must be removed/disabled/etc in order to perform upgrades to MT.

  1. Create a file:

    MT_DIR/plugins/DoNotUpgrade/config.yaml
    
  2. Add the following code to the file:

    callbacks:
        init_request: sub { MT->app->{upgrade_required} = 0 }
    

This plugin should work in 4.x versions of Movable Type.