Index: flickr_imagefield.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/flickr_imagefield/flickr_imagefield.install,v
retrieving revision 1.2
diff -u -p -r1.2 flickr_imagefield.install
--- flickr_imagefield.install	17 Oct 2009 19:56:56 -0000	1.2
+++ flickr_imagefield.install	14 Jun 2010 12:22:29 -0000
@@ -3,15 +3,24 @@
 
 /**
  * Implementation of hook_install().
+ *
+ * Add a column to the files table that will record the location of any file
+ * that has been uploaded to Flickr.
  */
 function flickr_imagefield_install() {
+  $ret = array();
   drupal_load('module', 'content');
-  content_notify('install', 'flickr_imagefield');
+  content_notify('install', 'flickr_imagefield');  
+  $spec = flickr_imagefield_spec();
+  db_add_field($ret, 'files', 'flickr_imagefield_location', $spec);
 }
 
 function flickr_imagefield_uninstall() {
+  $ret = array();
   drupal_load('module', 'content');
   content_notify('uninstall', 'flickr_imagefield');
+  $spec = flickr_imagefield_spec();
+  db_drop_field($ret, 'files', 'flickr_imagefield_location', $spec);
   variable_del('flickr_api_token');
   variable_del('flickr_global_tag');
 }
@@ -26,18 +35,11 @@ function flickr_imagefield_disable() {
   content_notify('disable', 'flickr_imagefield');
 }
 
-/**
- * Add a column to the files table that will record the location of any file
- * that has been uploaded to Flickr.
- */
-function flickr_imagefield_update_6000() {
-  $ret = array();
-  $spec = array(
+function flickr_imagefield_spec() {
+  return array(
     'type' => 'varchar',
     'length' => 75, // urls were not larger than 66 characters in my testing
     'not null' => TRUE,
     'default' => '',
   );
-  db_add_field($ret, 'files', 'flickr_imagefield_location', $spec);
-  return $ret;
 }
\ No newline at end of file
