--- notify.install	2007-07-14 23:13:08.000000000 -0400
+++ notify.install	2008-10-13 14:55:48.000000000 -0400
@@ -1,5 +1,5 @@
 <?php
-// $Id: notify.install,v 1.4.2.1 2007/07/15 03:13:08 augustin Exp $
+// $Id: notify.install,v 1.4.2.3 2007/08/19 22:42:14 augustin Exp $
 
 /**
  * Implementation of hook_install()
@@ -12,6 +12,7 @@ function notify_install() {
         uid INT(10) UNSIGNED NOT NULL DEFAULT '0',
         status TINYINT(2) NOT NULL DEFAULT '0',
         node TINYINT(2) NOT NULL DEFAULT '0',
+        updates TINYINT(2) NOT NULL DEFAULT '0',
         comment TINYINT(2) NOT NULL DEFAULT '0',
         attempts TINYINT(4) NOT NULL DEFAULT '0',
         teasers TINYINT(4) NOT NULL DEFAULT '0',
@@ -24,6 +25,7 @@ function notify_install() {
         uid integer NOT NULL DEFAULT '0',
         status integer NOT NULL DEFAULT '0',
         node integer NOT NULL DEFAULT '0',
+        updates integer NOT NULL DEFAULT '0',
         comment integer NOT NULL DEFAULT '0',
         attempts integer NOT NULL DEFAULT '0',
         teasers integer NOT NULL DEFAULT '0',
@@ -47,6 +49,16 @@ function notify_install() {
 }
 
 /**
+ * Implementation of hook_uninstall()
+ */
+function notify_uninstall() {
+  db_query("DROP TABLE {notify}");
+  variable_del('notify_send');
+  variable_del('notify_attempts');
+  variable_del('notify_send_last');
+}
+
+/**
  * Alter weight of notify to run after scheduler.
  */
 function notify_update_1() {
@@ -63,6 +75,8 @@ function notify_update_1() {
  * Clear {cache_menu} after the admin menu changes.
  */
 function notify_update_2() {
+  $ret = array();
   cache_clear_all(NULL, 'cache_menu');
   drupal_set_message(t('The settings page for the notify.module is now to be found in Administer > Site configuration > Notification settings.'));
+  return $ret;
 }
