query("CREATE TABLE {addthis_proxies} ( `id` int(9) NOT NULL AUTO_INCREMENT, `uuid` char(32) NOT NULL, `request_date` TIMESTAMP NOT NULL DEFAULT current_timestamp, `item_id` int(9) NOT NULL, PRIMARY KEY (`id`)) DEFAULT CHARSET=utf8;"); module::set_var("addthis", "username", ""); module::set_version("addthis", 1); } static function upgrade($version) { if ($version == 1) { module::set_version("addthis", $version = 1); } } static function uninstall() { Database::instance()->query("DROP TABLE IF EXISTS {addthis_proxies}"); module::delete("addthis"); } }