@@ -365,6 +365,7 @@ static public function sGetStatusInfo($db, $table, $info = null, $force_read = f
365365 *
366366 * @param string $name name
367367 * @param string $type type ('INT', 'VARCHAR', 'BIT', ...)
368+ * @param string $index
368369 * @param string $length length ('2', '5,2', '', ...)
369370 * @param string $attribute attribute
370371 * @param string $collation collation
@@ -376,7 +377,6 @@ static public function sGetStatusInfo($db, $table, $info = null, $force_read = f
376377 * @param string $extra 'AUTO_INCREMENT'
377378 * @param string $comment field comment
378379 * @param array &$field_primary list of fields for PRIMARY KEY
379- * @param string $index
380380 * @param mixed $default_orig
381381 * @param string $move_to new position for column
382382 *
@@ -386,10 +386,10 @@ static public function sGetStatusInfo($db, $table, $info = null, $force_read = f
386386 *
387387 * @return string field specification
388388 */
389- static function generateFieldSpec ($ name , $ type , $ length = '' , $ attribute = '' ,
389+ static function generateFieldSpec ($ name , $ type , $ index , $ length = '' , $ attribute = '' ,
390390 $ collation = '' , $ null = false , $ default_type = 'USER_DEFINED ' ,
391391 $ default_value = '' , $ extra = '' , $ comment = '' ,
392- &$ field_primary = null , $ index , $ default_orig , $ move_to
392+ &$ field_primary = null , $ default_orig = '' , $ move_to = ''
393393 ) {
394394 $ is_timestamp = strpos (strtoupper ($ type ), 'TIMESTAMP ' ) !== false ;
395395
@@ -616,9 +616,9 @@ static public function generateAlter($oldcol, $newcol, $type, $length,
616616 ) {
617617 return PMA_backquote ($ oldcol ) . ' '
618618 . PMA_Table::generateFieldSpec (
619- $ newcol , $ type , $ length , $ attribute ,
619+ $ newcol , $ type , $ index , $ length , $ attribute ,
620620 $ collation , $ null , $ default_type , $ default_value , $ extra ,
621- $ comment , $ field_primary , $ index , $ default_orig , $ move_to
621+ $ comment , $ field_primary , $ default_orig , $ move_to
622622 );
623623 } // end function
624624
0 commit comments