--- alx-src/branches/alx-web-070/scripts/sql-schema/mcore-sql-schema.sh 2016/02/05 14:31:53 8501 +++ alx-src/branches/alx-web-070/scripts/sql-schema/mcore-sql-schema.sh 2016/02/05 14:32:57 8502 @@ -216,7 +216,7 @@ if [[ -n ${primary} ]] then # only run this if the primary key is not already the same column - i=( $(mysqldo 'SHOW COLUMNS FROM ${MCORE_SQL_DB}.${table} WHERE `Key`="PRI"') ) + i=( $(mysqldo 'SHOW COLUMNS FROM '${MCORE_SQL_DB}.${table}' WHERE `Key`="PRI"') ) current_primary="${i[0]}" if [[ ${current_primary} != ${primary} ]] then