Opened 17 months ago

Last modified 7 weeks ago

#227 new enhancement

Check for db version and force upgrade if neccessary

Reported by: dimadin Owned by:
Milestone: 1.0 Priority: normal
Version: Component: general
Keywords: needs-patch Cc:


Currently, the only way to do a database upgrade is if user opens install.php. This means that if some change is implemented in database structure, it won't be applied to existing installation that checkouts from SVN, for example.

GP should compare db versions and force upgrade if installed version is older.

Change History (5)

comment:1 markoheijnen10 months ago

Is it an idea to do a check when an admin logs in. Also curious if install.php should be protected with a login.

comment:2 nacin10 months ago

Or install.php, once installed, can simply trigger a database upgrade automatically (and do nothing else). WP core doesn't require a login for a DB upgrade. If they want to disable upgrades (something WP.org would want to do, so we can do it manually), there should be a constant.

comment:3 markoheijnen9 months ago

  • Milestone set to Future Release

Adding missing milestone so they show up in the roadmap

comment:4 markoheijnen4 months ago

  • Milestone changed from Future Release to 1.0
  • Priority changed from normal to critical

comment:5 markoheijnen7 weeks ago

  • Keywords needs-patch added
  • Priority changed from critical to normal

The first part nacin mentioned was fixed in #281. I think the focus here will be there an administrator can receive a message that he needs to update the database. And then also include a constant for disabling this.

Note: See TracTickets for help on using tickets.