Update version numbers in installer/updater.
This commit is contained in:
parent
5e6ed6ba61
commit
a9b6116462
@ -24,7 +24,7 @@ class moduleupdates_installer {
|
|||||||
|
|
||||||
$version = module::get_version("moduleupdates");
|
$version = module::get_version("moduleupdates");
|
||||||
if ($version < 1) {
|
if ($version < 1) {
|
||||||
module::set_version("moduleupdates", 8);
|
module::set_version("moduleupdates", 10);
|
||||||
//Remove the ModuleUpdates cache entry 'JIC'
|
//Remove the ModuleUpdates cache entry 'JIC'
|
||||||
Cache::instance()->delete("ModuleUpdates");
|
Cache::instance()->delete("ModuleUpdates");
|
||||||
//create the blank ModuleUpdates cache entry with an expiration of 0 days
|
//create the blank ModuleUpdates cache entry with an expiration of 0 days
|
||||||
@ -34,7 +34,7 @@ class moduleupdates_installer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function upgrade($version) {
|
static function upgrade($version) {
|
||||||
module::set_version("moduleupdates", 8);
|
module::set_version("moduleupdates", 10);
|
||||||
//Remove the ModuleUpdates cache entry 'JIC'
|
//Remove the ModuleUpdates cache entry 'JIC'
|
||||||
Cache::instance()->delete("ModuleUpdates");
|
Cache::instance()->delete("ModuleUpdates");
|
||||||
//Empty the ModuleUpdates cache entry so our new version starts from scratch
|
//Empty the ModuleUpdates cache entry so our new version starts from scratch
|
||||||
|
@ -24,7 +24,7 @@ class moduleupdates_installer {
|
|||||||
|
|
||||||
$version = module::get_version("moduleupdates");
|
$version = module::get_version("moduleupdates");
|
||||||
if ($version < 1) {
|
if ($version < 1) {
|
||||||
module::set_version("moduleupdates", 8);
|
module::set_version("moduleupdates", 10);
|
||||||
//Remove the ModuleUpdates cache entry 'JIC'
|
//Remove the ModuleUpdates cache entry 'JIC'
|
||||||
Cache::instance()->delete("ModuleUpdates");
|
Cache::instance()->delete("ModuleUpdates");
|
||||||
//create the blank ModuleUpdates cache entry with an expiration of 0 days
|
//create the blank ModuleUpdates cache entry with an expiration of 0 days
|
||||||
@ -34,7 +34,7 @@ class moduleupdates_installer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static function upgrade($version) {
|
static function upgrade($version) {
|
||||||
module::set_version("moduleupdates", 8);
|
module::set_version("moduleupdates", 10);
|
||||||
//Remove the ModuleUpdates cache entry 'JIC'
|
//Remove the ModuleUpdates cache entry 'JIC'
|
||||||
Cache::instance()->delete("ModuleUpdates");
|
Cache::instance()->delete("ModuleUpdates");
|
||||||
//Empty the ModuleUpdates cache entry so our new version starts from scratch
|
//Empty the ModuleUpdates cache entry so our new version starts from scratch
|
||||||
|
Reference in New Issue
Block a user