-- Rimuove catid (categoria Joomla), aggiunge usergroup_id e hits
ALTER TABLE `#__circolari`
  DROP COLUMN IF EXISTS `catid`,
  ADD COLUMN IF NOT EXISTS `usergroup_id` INT(11) UNSIGNED NOT NULL DEFAULT 0 ,
  ADD COLUMN IF NOT EXISTS `hits` INT(11) UNSIGNED NOT NULL DEFAULT 0 AFTER `usergroup_id`,
  ADD INDEX `idx_usergroup_id` (`usergroup_id`),
  ADD INDEX `idx_hits` (`hits`);
