1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Update routine improvements. Check for plugin xxxx_setup.php during db-verify

This commit is contained in:
Cameron
2013-03-10 18:42:54 -07:00
parent 823e813a5e
commit 6f8481e528
3 changed files with 18 additions and 8 deletions

View File

@@ -957,7 +957,9 @@ function update_706_to_800($type='')
require_once(e_HANDLER."db_verify_class.php");
$dbv = new db_verify;
$dbv->compareAll(); // core & plugins
$exclude = array_keys(e107::getPlugin()->updateRequired()); // search xxxxx_setup.php and check for 'upgrade_required()' == true.
$dbv->compareAll($exclude); // core & plugins, but not plugins calling for an update with xxxxx_setup.php
if(count($dbv->errors))
{
@@ -968,17 +970,18 @@ function update_706_to_800($type='')
return update_needed("Database Tables require updating.");
}
$dbv->compileResults();
$dbv->runFix(); // Fix entire core database structure and plugins too.
}
$dbv->compileResults();
// print_a($dbv->results);
// print_a($dbv->fixList);
$dbv->runFix(); // Fix entire core database structure.
//TODO - send notification messages to Log.
if($sql->gen("SELECT * FROM #page WHERE page_theme != '' AND menu_title = '' LIMIT 1"))
if($sql->field('page','page_theme') && $sql->gen("SELECT * FROM #page WHERE page_theme != '' AND menu_title = '' LIMIT 1"))
{
if ($just_check)
{