248 |
if [[ -n ${autoincrement} ]] |
if [[ -n ${autoincrement} ]] |
249 |
then |
then |
250 |
i=( $(mysqldo 'SHOW COLUMNS FROM '${MCORE_SQL_DB}.${table}' WHERE `Extra`="auto_increment"') ) |
i=( $(mysqldo 'SHOW COLUMNS FROM '${MCORE_SQL_DB}.${table}' WHERE `Extra`="auto_increment"') ) |
|
echo "DEBUG: i='${i[*]}'" |
|
251 |
current_autoincrement="${i[0]}" |
current_autoincrement="${i[0]}" |
252 |
if [[ ${current_autoincrement} != ${column} ]] && [[ -n ${current_autoincrement} ]] |
if [[ ${current_autoincrement} != ${column} ]] && [[ -n ${current_autoincrement} ]] |
253 |
then |
then |