OKAPI Project update (r554).
This commit is contained in:
@ -16,9 +16,9 @@ use okapi\OkapiServiceRunner;
|
||||
use okapi\OkapiInternalRequest;
|
||||
use okapi\Settings;
|
||||
use okapi\OkapiLock;
|
||||
|
||||
use okapi\cronjobs\CronJobController;
|
||||
|
||||
require_once($GLOBALS['rootpath']."okapi/cronjobs.php");
|
||||
|
||||
class View
|
||||
{
|
||||
@ -622,4 +622,32 @@ class View
|
||||
private static function ver74() { Db::execute("update okapi_cache set score=1, expires=date_add(now(), interval 360 day) where `key` like 'tilecaption/%'"); }
|
||||
private static function ver75() { Db::execute("alter table okapi_cache modify column score float default null"); }
|
||||
private static function ver76() { Db::execute("update okapi_cache set expires=date_add(now(), interval 100 year) where `key` like 'clog#geocache#%'"); }
|
||||
|
||||
private static function ver77()
|
||||
{
|
||||
Db::execute("
|
||||
CREATE TABLE okapi_search_sets (
|
||||
id mediumint(6) unsigned not null auto_increment,
|
||||
params_hash varchar(64) not null,
|
||||
primary key (id),
|
||||
key by_hash (params_hash, id)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
");
|
||||
}
|
||||
|
||||
private static function ver78()
|
||||
{
|
||||
Db::execute("
|
||||
CREATE TABLE okapi_search_results (
|
||||
set_id mediumint(6) unsigned not null,
|
||||
cache_id mediumint(6) unsigned not null,
|
||||
primary key (set_id, cache_id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
");
|
||||
}
|
||||
|
||||
private static function ver79() { Db::execute("alter table okapi_search_results engine=MyISAM"); }
|
||||
private static function ver80() { Db::execute("alter table okapi_search_sets add column date_created datetime not null"); }
|
||||
private static function ver81() { Db::execute("alter table okapi_search_sets add column expires datetime not null"); }
|
||||
private static function ver82() { CronJobController::reset_job_schedule("FulldumpGeneratorJob"); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user