4.0 database version.php changes

tmccormi wrote on Monday, December 20, 2010:

Since we now have version changes to the database tracked, shouldn’t it be possible to detect at startup, that the database version has changed and sql_upgrade.php should be run?

I don’t know about everyone else, but I rarely reinstall from scratch, I update my running systems with new files as they are released, then walk through each site running the sql upgrade. 

Seem like just loading the site could trigger a “need to upgrade” alert and take you right there.

Is there a better way?

-Tony

sunsetsystems wrote on Monday, December 20, 2010:

Exactly.  admin.php already checks, so you could borrow some logic from that.

Rod
www.sunsetsystems.com