Index: notify.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/notify/notify.install,v
retrieving revision 1.4
diff -u -r1.4 notify.install
--- notify.install 22 Dec 2006 04:27:55 -0000 1.4
+++ notify.install 29 Mar 2007 11:36:59 -0000
@@ -15,6 +15,7 @@
         comment TINYINT(2) NOT NULL DEFAULT '0',
         attempts TINYINT(4) NOT NULL DEFAULT '0',
         teasers TINYINT(4) NOT NULL DEFAULT '0',
+        use_default TINYINT(2) NOT NULL DEFAULT '0',
         PRIMARY KEY (uid)
       ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
       break;
@@ -27,6 +28,7 @@
         comment integer NOT NULL DEFAULT '0',
         attempts integer NOT NULL DEFAULT '0',
         teasers integer NOT NULL DEFAULT '0',
+        use_default integer NOT NULL DEFAULT '0',
         PRIMARY KEY (uid)
       );");
       break;
@@ -58,3 +60,22 @@
   $ret[] = update_sql("UPDATE {system} SET weight = $weight WHERE name = 'notify'");
   return $ret;
 }
+
+/**
+ * Add use_default column to notify table.
+ */
+function notify_update_2() {
+  $ret = array();
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      $ret[] = update_sql("ALTER TABLE notify ADD use_default TINYINT(2) NOT NULL DEFAULT 0");
+      break;
+
+    case 'pgsql':
+      $ret[] = update_sql("ALTER TABLE notify ADD use_default integer NOT NULL DEFAULT 0");
+      break;
+  }
+
+  return $ret;
+}
