Merge pull request #1734 from sibprogrammer/feature-control-min-version
Ability to contol the minimal MySQL version via config.
This commit is contained in:
commit
cebb2a5140
@ -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'])
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -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'
|
||||
);
|
||||
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user