local OLD_BRANCH=$(installed_version db|cut -d. -f1,2|sed 's:\.::') &&
local CURRENT_BRANCH=$(gaze version $SPELL | awk 'NR == 3 {print $4}'|cut -d. -f1,2|sed 's:\.::')

if spell_ok db;then
  if [[ "$OLD_BRANCH" != "$CURRENT_BRANCH" ]]; then
    if ! query 'Log file format has changed! Continue?' n;then
      message "${PROBLEM_COLOR}Log format has changed and you need to affirm you are ready${DEFAULT_COLOR}" &&
      return 1
    fi
  fi
fi
return 0
