Fixed some issues in Pull#1662 commit

Checks for LINEAR HASH and LINEAR KEY partition types were missing.
These can not be DROPped, should be COALESCEd instead.

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
Deven Bansod 2015-05-18 18:10:35 +05:30
parent 6c52f2318c
commit 59889243ff

View File

@ -1284,10 +1284,10 @@ function PMA_getHtmlForPartitionMaintenance($partition_names, $url_params)
$GLOBALS['db'], $GLOBALS['table']
);
// add COALESCE or DROP option to choices array depeding on Partition method
if ($partition_method == 'KEY' || $partition_method == 'HASH') {
$choices['COALESCE'] = __('Coalesce');
} else {
if ($partition_method == 'RANGE' || $partition_method == 'LIST') {
$choices['DROP'] = __('Drop');
} else {
$choices['COALESCE'] = __('Coalesce');
}
$html_output = '<div class="operations_half_width">'