Merge pull request #1734 from sibprogrammer/feature-control-min-version

Ability to contol the minimal MySQL version via config.
This commit is contained in:
Marc Delisle 2015-06-15 15:20:17 -04:00
commit cebb2a5140
2 changed files with 13 additions and 2 deletions

View File

@ -1027,10 +1027,10 @@ if (! defined('PMA_MINIMUM_COMMON')) {
/* Log success */
PMA_logUser($cfg['Server']['user']);
if (PMA_MYSQL_INT_VERSION < 50500) {
if (PMA_MYSQL_INT_VERSION < $cfg['MysqlMinVersion']['internal']) {
PMA_fatalError(
__('You should upgrade to %s %s or later.'),
array('MySQL', '5.5.0')
array('MySQL', $cfg['MysqlMinVersion']['human'])
);
}

View File

@ -3065,4 +3065,15 @@ $cfg['maxRowPlotLimit'] = 500;
*/
$cfg['ShowGitRevision'] = true;
/**
* MySQL minimal version required
*
* @global array $cfg['MysqlMinVersion']
*/
$cfg['MysqlMinVersion'] = array(
'internal' => 50500,
'human' => '5.5.0'
);
?>