? community_tags.install.patch
Index: community_tags.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/community_tags/community_tags.install,v
retrieving revision 1.1
diff -u -p -r1.1 community_tags.install
--- community_tags.install	20 Oct 2006 18:03:59 -0000	1.1
+++ community_tags.install	20 Oct 2006 23:20:18 -0000
@@ -64,69 +64,3 @@ function community_tags_install() {
     drupal_set_message(t('community_tags module installed successfully.'));
   }
 }
-
-/**
- * Duplicate of community_tags_install() to create tables for previous community_tags
- * users.
- */
-function community_tags_update_1() {
-  $status = array();
-  switch ($GLOBALS['db_type']) {
-    case 'mysql':
-    case 'mysqli':
-      $status[] = update_sql("CREATE TABLE {community_tags_tag_node} (
-        tid int(10) unsigned NOT NULL DEFAULT '0',
-        nid int(10) unsigned NOT NULL DEFAULT '0',
-        uid int(10) unsigned NOT NULL DEFAULT '0',
-        tag_count int(10) unsigned NOT NULL DEFAULT '0',
-        PRIMARY KEY  (tid,nid,uid),
-        KEY nid (nid),
-        KEY uid (uid)
-      ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
-
-      $status[] = update_sql("CREATE TABLE {community_tags} (
-        vid int(10) unsigned NOT NULL DEFAULT '0',
-        nid int(10) unsigned NOT NULL DEFAULT '0',
-        community_tags_form int(2) unsigned NOT NULL DEFAULT '0',
-        PRIMARY KEY (vid),
-        KEY nid (nid)
-      ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
-      break;
-
-    case 'pgsql':
-      $status[] = update_sql("CREATE TABLE {community_tags_tag_node} (
-        tid integer NOT NULL DEFAULT '0',
-        nid integer NOT NULL DEFAULT '0',
-        uid integer NOT NULL DEFAULT '0',
-        tag_count integer NOT NULL DEFAULT '0',
-        PRIMARY KEY (tid,nid,uid),
-        KEY nid (nid),
-        KEY uid (uid)
-      );");
-
-      $status[] = update_sql("CREATE TABLE {community_tags} (
-        vid integer NOT NULL DEFAULT '0',
-        nid integer NOT NULL DEFAULT '0',
-        community_tags_form integer NOT NULL DEFAULT '0',
-        PRIMARY KEY (vid),
-        KEY nid (nid)
-      );");
-      break;
-  }
-
-  return $status;
-}
-
-/**
- * Drop module weight.
- */
-function community_tags_update_2() {
-  $status = array();
-
-  // Drop module weight so we act after taxonomy.
-  $weight = (int)db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
-  $sql = sprintf("UPDATE {system} SET weight = %d WHERE name = 'community_tags'", $weight + 1);
-  $result = db_query($sql);
-  $status[] = array('success' => $result !== FALSE, 'query' => check_plain($sql));
-  return $status;
-}
\ No newline at end of file
