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

Diff of /contributions/modules/inventory/inventory.install

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

revision 1.1, Wed Feb 28 19:54:38 2007 UTC revision 1.2, Wed Feb 28 20:02:13 2007 UTC
# Line 0  Line 1 
1    <?
2    
3    function inventory_install() {
4            db_query('CREATE TABLE {inventory_items} (
5                            nid      INT UNSIGNED NOT NULL,
6                            vid      INT UNSIGNED NOT NULL,
7                            fieldset VARCHAR(255) NOT NULL,
8                            name     VARCHAR(255) NOT NULL,
9                            count    INT UNSIGNED NOT NULL,
10                            PRIMARY KEY (vid, name),
11                            INDEX (nid)
12                            )'
13      );
14    }
15    
16    function inventory_uninstall() {
17      db_query('DROP TABLE {inventory_items}');
18    }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2