@@verze 4 @@sql CREATE TABLE IF NOT EXISTS `mod_eshop_category_statistics`(`mod_eshop_kategorie_id` int(11) NOT NULL,`lang` int(11) NOT NULL,`product_count` int(11) NOT NULL,`access_count` int(11) NOT NULL,`access_per_product` float NOT NULL,`bought_product_count` int(11) NOT NULL,`total_turn` float NOT NULL,`date` datetime NOT NULL,`complete` int(11) NOT NULL, PRIMARY KEY (`mod_eshop_kategorie_id`, `date`, `lang`, `complete`), CONSTRAINT `mod_eshop_category_statistics_ibfk_2` FOREIGN KEY (`mod_eshop_kategorie_id`) REFERENCES `mod_eshop_kategorie` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_czech_ci; @@init CategoryStatisticsCache::integrate(); @@reflection if (!isset($moduly["eshop"])) return "nelze"; if(CategoryStatisticsCache::isEnabled()) return "ano"; else return "ne";