diff --git a/modules/basket/helpers/basket_installer.php b/modules/basket/helpers/basket_installer.php index dca5da90..1ec5edb4 100644 --- a/modules/basket/helpers/basket_installer.php +++ b/modules/basket/helpers/basket_installer.php @@ -17,16 +17,9 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ - -class basket_installer -{ - static function install(){ - module::set_version("basket", 1); - } - static function activate() { - +class basket_installer { + static function install() { $db = Database::instance(); - $db->query("CREATE TABLE IF NOT EXISTS {products} ( `id` int(9) NOT NULL auto_increment, `name` TEXT NOT NULL, @@ -34,16 +27,14 @@ class basket_installer `description` varchar(1024), PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); - - - product::create("4x6",5,"4\"x6\" print"); product::create("8x10",25,"8\"x10\" print"); product::create("8x12",30,"8\"x12\" print"); + module::set_version("basket", 1); } - static function deactivate(){ + static function uninstall() { $db = Database::instance(); $db->query("DROP TABLE IF EXISTS {products}"); } diff --git a/modules/batchtag/helpers/batchtag_installer.php b/modules/batchtag/helpers/batchtag_installer.php deleted file mode 100644 index 0a24b58c..00000000 --- a/modules/batchtag/helpers/batchtag_installer.php +++ /dev/null @@ -1,27 +0,0 @@ -query("DROP TABLE IF EXISTS {tags_gpses};"); - module::delete("tagsmap"); } } diff --git a/modules/user_homes/helpers/user_homes_installer.php b/modules/user_homes/helpers/user_homes_installer.php index 0e80e6c1..1a2af803 100644 --- a/modules/user_homes/helpers/user_homes_installer.php +++ b/modules/user_homes/helpers/user_homes_installer.php @@ -20,13 +20,6 @@ class user_homes_installer { static function install() { - module::set_version("user_homes", 1); - } - - /** - * Installs the table of user homes when the module is installed. - */ - static function activate() { $db = Database::instance(); $db->query("CREATE TABLE IF NOT EXISTS {user_homes} ( `id` int(9) NOT NULL, @@ -40,7 +33,7 @@ class user_homes_installer { /** * Drops the table of user homes when the module is uninstalled. */ - static function deactivate() { + static function uninstall() { $db = Database::instance(); $db->query("DROP TABLE IF EXISTS {user_homes};"); } diff --git a/modules/videodimensions/helpers/videodimensions_installer.php b/modules/videodimensions/helpers/videodimensions_installer.php deleted file mode 100644 index 098fca08..00000000 --- a/modules/videodimensions/helpers/videodimensions_installer.php +++ /dev/null @@ -1,27 +0,0 @@ -