Magellan Linux

Diff of /alx-src/branches/alx-web-070/scripts/sql-schema/mcore-sql-schema.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8501 by niro, Fri Feb 5 14:31:53 2016 UTC revision 8502 by niro, Fri Feb 5 14:32:57 2016 UTC
# Line 216  sql_modify_column() Line 216  sql_modify_column()
216   if [[ -n ${primary} ]]   if [[ -n ${primary} ]]
217   then   then
218   # only run this if the primary key is not already the same column   # only run this if the primary key is not already the same column
219   i=( $(mysqldo 'SHOW COLUMNS FROM ${MCORE_SQL_DB}.${table} WHERE `Key`="PRI"') )   i=( $(mysqldo 'SHOW COLUMNS FROM '${MCORE_SQL_DB}.${table}' WHERE `Key`="PRI"') )
220   current_primary="${i[0]}"   current_primary="${i[0]}"
221   if [[ ${current_primary} != ${primary} ]]   if [[ ${current_primary} != ${primary} ]]
222   then   then

Legend:
Removed from v.8501  
changed lines
  Added in v.8502