Index: importexportapi.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/importexportapi/importexportapi.install,v
retrieving revision 1.5.6.1
diff -u -p -r1.5.6.1 importexportapi.install
--- importexportapi.install	5 May 2009 17:48:44 -0000	1.5.6.1
+++ importexportapi.install	12 Oct 2009 13:24:59 -0000
@@ -13,8 +13,6 @@
 function importexportapi_install() {
   // Create tables
   drupal_install_schema('importexportapi');
-  //drupal_install_schema('importexportapi_db_put_map');
-  //drupal_install_schema('importexportapi_db_put_map_alt');
 }
 
 /**
@@ -22,9 +20,7 @@ function importexportapi_install() {
  */
 function importexportapi_uninstall() {
   // Drop tables
-   drupal_uninstall_schema('importexportapi');
-  //drupal_uninstall_schema('importexportapi_db_put_map');
-  //drupal_uninstall_schema('importexportapi_db_put_map_alt');
+  drupal_uninstall_schema('importexportapi');
 }
 
 
@@ -35,10 +31,10 @@ function importexportapi_schema() {
   $schema['importexportapi_db_put_map'] = array(
     'fields' => array(
       'put_map_id' => array(
-        'type' => 'int', 
+        'type' => 'serial', 
         'unsigned' => TRUE, 
         'not null' => TRUE, 
-        'auto_increment'),
+      ),
       'put_id' => array(
         'type' => 'int', 
         'unsigned' => TRUE, 
@@ -73,10 +69,10 @@ function importexportapi_schema() {
   $schema['importexportapi_db_put_map_alt'] = array(
     'fields' => array(
       'put_map_alt_id' => array(
-        'type' => 'int', 
+        'type' => 'serial', 
         'unsigned' => TRUE, 
         'not null' => TRUE, 
-        'auto_increment'),
+      ),
       'put_id' => array(
         'type' => 'int', 
         'unsigned' => TRUE, 
@@ -119,14 +115,46 @@ function importexportapi_schema() {
 function importexportapi_update_1() {
   $ret = array();
 
-  db_add_field($ret, 'db_put_map_alt', 'put_map_alt_id', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'auto_increment'));
-  db_add_field($ret, 'db_put_map_alt', 'put_id', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0));
-  db_add_field($ret, 'db_put_map_alt', 'entity', array('type' => 'varchar', 'not null' => TRUE, 'default'));
-  db_add_field($ret, 'db_put_map_alt', 'field', array('type' => 'varchar', 'not null' => TRUE, 'default'));
-  db_add_field($ret, 'db_put_map_alt', 'alt_field', array('type' => 'varchar', 'not null' => TRUE, 'default'));
-  db_add_field($ret, 'db_put_map_alt', 'value_alt', array('type' => 'varchar', 'not null' => TRUE, 'default' => 0));
-  db_add_field($ret, 'db_put_map_alt', 'value_key', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0));
-  db_add_index($ret, 'db_put_map_alt', 'put_map_alt_id', array('put_map_alt_id'));
+  db_add_field($ret, 'db_put_map_alt', 'put_map_alt_id', array(
+    'type' => 'serial',
+    'unsigned' => TRUE,
+    'not null' => TRUE,
+    ));
+  db_add_field($ret, 'db_put_map_alt', 'put_id', array(
+    'type' => 'int',
+    'unsigned' => TRUE,
+    'not null' => TRUE,
+    'default' => 0,
+  ));
+  db_add_field($ret, 'db_put_map_alt', 'entity', array(
+    'type' => 'varchar',
+    'not null' => TRUE,
+    'default',
+  ));
+  db_add_field($ret, 'db_put_map_alt', 'field', array(
+    'type' => 'varchar',
+    'not null' => TRUE,
+    'default'
+  ));
+  db_add_field($ret, 'db_put_map_alt', 'alt_field', array(
+    'type' => 'varchar',
+    'not null' => TRUE,
+    'default'
+  ));
+  db_add_field($ret, 'db_put_map_alt', 'value_alt', array(
+    'type' => 'varchar',
+    'not null' => TRUE,
+    'default' => 0,
+  ));
+  db_add_field($ret, 'db_put_map_alt', 'value_key', array(
+    'type' => 'int',
+    'unsigned' => TRUE,
+    'not null' => TRUE,
+    'default' => 0,
+  ));
+  db_add_index($ret, 'db_put_map_alt', 'put_map_alt_id', array(
+    'put_map_alt_id'
+  ));
 
   return $ret;;
 }
