/[drupal]/contributions/modules/update_status_aggregator/update_status_aggregator.install
ViewVC logotype

Diff of /contributions/modules/update_status_aggregator/update_status_aggregator.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6, Tue Mar 25 18:49:13 2008 UTC revision 1.6.2.1, Tue Oct 21 17:19:09 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: update_status_aggregator.install,v 1.5 2008/03/25 18:46:18 yrocq Exp $  // $Id: update_status_aggregator.install,v 1.6 2008/03/25 18:49:13 yrocq Exp $
3  /**  /**
4   * Implementation of hook_install().   * Implementation of hook_install().
5   */   */
# Line 12  function update_status_aggregator_instal Line 12  function update_status_aggregator_instal
12          vid int unsigned NOT NULL default '0',          vid int unsigned NOT NULL default '0',
13          module text NOT NULL,          module text NOT NULL,
14          site INT UNSIGNED NOT NULL,          site INT UNSIGNED NOT NULL,
15          status int unsigned NOT NULL default '0',          module_status int unsigned NOT NULL default '0',
16          PRIMARY KEY (nid,vid),          PRIMARY KEY (nid,vid),
17          UNIQUE KEY vid (vid),          UNIQUE KEY vid (vid),
18          KEY nid (nid)          KEY nid (nid)
# Line 32  function update_status_aggregator_instal Line 32  function update_status_aggregator_instal
32          vid int unsigned NOT NULL default '0',          vid int unsigned NOT NULL default '0',
33          module text NOT NULL,          module text NOT NULL,
34          site INT UNSIGNED NOT NULL,          site INT UNSIGNED NOT NULL,
35          status int unsigned NOT NULL default '0',          module_status int unsigned NOT NULL default '0',
36          PRIMARY KEY (nid,vid),          PRIMARY KEY (nid,vid),
37          UNIQUE KEY vid (vid),          UNIQUE KEY vid (vid),
38          KEY nid (nid)          KEY nid (nid)
# Line 72  function update_status_aggregator_update Line 72  function update_status_aggregator_update
72    return $items;    return $items;
73  }  }
74    
75    function update_status_aggregator_update_3() {
76      $items = array();
77    
78      $items[] = update_sql("ALTER TABLE {update_status_aggregator} CHANGE status module_status int unsigned NOT NULL default '0'");
79      $items[] = update_sql("UPDATE {node} SET status=1 WHERE type='update_status_aggregator_module'");
80    
81      return $items;
82    }
83    
84  /**  /**
85   * Implementation of hook_uninstall().   * Implementation of hook_uninstall().
86   */   */

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.6.2.1

  ViewVC Help
Powered by ViewVC 1.1.2