976
976
/*, `duration` INT, `complete` BOOL,*/
977
977
if (!mysql_query("CREATE TABLE IF NOT EXISTS `$name` (`time` DATETIME PRIMARY KEY, `n` BIGINT, `missing` INT" . $query . ") ENGINE = $ADEI_CACHE_ENGINE COMPRESSION=\"$ADEI_CACHE_COMPRESSION\"", $this->dbh)) {
978
throw new ADEIException(translate("Unable to create cache table (resolution: %s, items: 3 + 3 * %s), error: %s", $resolution, $items, mysql_error($this->dbh)));
981
981
// There is no way to create if not existing. So there is a lot of errors in log. Rarely changed, so moved to system.