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 'the log file format has changed! continue?' n;then
      message failed  
      return 1
    fi
  fi
fi
message ok
return 0
