Increase version number two 2, create a new module variable.
This commit is contained in:
parent
4d891619bd
commit
4d218a50f8
@ -28,9 +28,19 @@ class albumpassword_installer {
|
|||||||
PRIMARY KEY (`id`))
|
PRIMARY KEY (`id`))
|
||||||
DEFAULT CHARSET=utf8;");
|
DEFAULT CHARSET=utf8;");
|
||||||
|
|
||||||
|
// Set the default value for this module's behavior.
|
||||||
|
module::set_var("albumpassword", "hideonly", true);
|
||||||
|
|
||||||
// Set the module's version number.
|
// Set the module's version number.
|
||||||
module::set_version("albumpassword", 1);
|
module::set_version("albumpassword", 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
static function upgrade($version) {
|
||||||
|
// Set the default value for this module's behavior.
|
||||||
|
module::set_var("albumpassword", "hideonly", true);
|
||||||
|
|
||||||
|
// Set the module's version number.
|
||||||
|
module::set_version("albumpassword", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static function uninstall() {
|
static function uninstall() {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
name = "Album Password"
|
name = "Album Password"
|
||||||
description = "Restrict access to individual albums."
|
description = "Restrict access to individual albums."
|
||||||
version = 1
|
version = 2
|
||||||
|
@ -28,9 +28,19 @@ class albumpassword_installer {
|
|||||||
PRIMARY KEY (`id`))
|
PRIMARY KEY (`id`))
|
||||||
DEFAULT CHARSET=utf8;");
|
DEFAULT CHARSET=utf8;");
|
||||||
|
|
||||||
|
// Set the default value for this module's behavior.
|
||||||
|
module::set_var("albumpassword", "hideonly", true);
|
||||||
|
|
||||||
// Set the module's version number.
|
// Set the module's version number.
|
||||||
module::set_version("albumpassword", 1);
|
module::set_version("albumpassword", 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
static function upgrade($version) {
|
||||||
|
// Set the default value for this module's behavior.
|
||||||
|
module::set_var("albumpassword", "hideonly", true);
|
||||||
|
|
||||||
|
// Set the module's version number.
|
||||||
|
module::set_version("albumpassword", 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
static function uninstall() {
|
static function uninstall() {
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
name = "Album Password"
|
name = "Album Password"
|
||||||
description = "Restrict access to individual albums."
|
description = "Restrict access to individual albums."
|
||||||
version = 1
|
version = 2
|
||||||
|
Reference in New Issue
Block a user