Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/README.txt,v
retrieving revision 1.6
diff -u -p -r1.6 README.txt
--- README.txt	18 Jul 2007 17:04:02 -0000	1.6
+++ README.txt	9 Oct 2007 16:39:51 -0000
@@ -7,4 +7,4 @@ other nodes, or used on their own to dis
 diagrams. 
 
 Author:
-James Walker <james@bryght.com>
+James Walker <james@lullabot.com>
Index: image.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.info,v
retrieving revision 1.4
diff -u -p -r1.4 image.info
--- image.info	18 Jul 2007 17:04:02 -0000	1.4
+++ image.info	9 Oct 2007 16:39:51 -0000
@@ -2,3 +2,4 @@
 name = Image
 description = Allows uploading, resizing and viewing of images.
 package = Image
+core = 6.x
Index: image.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/image.install,v
retrieving revision 1.13
diff -u -p -r1.13 image.install
--- image.install	27 Aug 2007 22:50:39 -0000	1.13
+++ image.install	9 Oct 2007 16:39:51 -0000
@@ -4,26 +4,45 @@
 /**
  * Installing and updating image.module.
  */
+function image_schema() {
+  $schema['image'] = array(
+    'description' = t('Stores image files information.'),
+    'fields' => array(
+      'nid' => array(
+        'description' => t('Primary Key: The {node}.nid of the image node.'),
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'fid' => array(
+        'description' => t('Index: The {files}.fid of the image file.'),
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'image_size' => array(
+        'description' => t('Primary Key: The {files}.filename of the image file.  For image module this indicates the file size.'),
+        'type' => 'varchar',
+        'length' => 32,
+        'not null' => TRUE,
+        'default' => '',
+      ),
+    ),
+  );
+}
+
+/**
+ * Installing and updating image.module.
+ */
 function image_install() {
-  switch ($GLOBALS['db_type']) {
-    case 'mysql':
-    case 'mysqli':
-      db_query("CREATE TABLE {image} (
-          `nid` INTEGER UNSIGNED NOT NULL,
-          `fid` INTEGER UNSIGNED NOT NULL,
-          `image_size` VARCHAR(32) NOT NULL,
-          PRIMARY KEY (`nid`, `image_size`),
-          INDEX image_fid(`fid`)
-        ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
-      break;
-  }
+  drupal_install_schema('image');
 }
 
 /**
  * Implementation of hook_uninstall().
  */
 function image_uninstall() {
-  db_query('DROP TABLE {image}');
+  drupal_uninstall_schema('image');
 
   variable_del('image_max_upload_size');
   variable_del('image_updated');
Index: contrib/image_attach/image_attach.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/contrib/image_attach/image_attach.info,v
retrieving revision 1.3
diff -u -p -r1.3 image_attach.info
--- contrib/image_attach/image_attach.info	18 Jul 2007 17:04:24 -0000	1.3
+++ contrib/image_attach/image_attach.info	9 Oct 2007 16:39:51 -0000
@@ -2,4 +2,5 @@
 name = Image Attach
 description = Allows easy attaching of image nodes to other content types.
 package = Image
-dependencies = image
\ No newline at end of file
+dependencies[] = image
+core = 6.x
\ No newline at end of file
Index: contrib/image_attach/image_attach.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/contrib/image_attach/image_attach.install,v
retrieving revision 1.10
diff -u -p -r1.10 image_attach.install
--- contrib/image_attach/image_attach.install	18 Jul 2007 17:04:24 -0000	1.10
+++ contrib/image_attach/image_attach.install	9 Oct 2007 16:39:51 -0000
@@ -1,31 +1,41 @@
 <?php
 // $Id: image_attach.install,v 1.10 2007/07/18 17:04:24 drewish Exp $
 
-function image_attach_install() {
-  switch ($GLOBALS['db_type']) {
-    case 'mysqli':
-    case 'mysql':
-      db_query("CREATE TABLE {image_attach} (
-        nid int(10) unsigned NOT NULL default '0',
-        iid int(10) unsigned NOT NULL default '0',
-        PRIMARY KEY  (nid),
-        KEY (iid)
-      ) /*!40100 DEFAULT CHARACTER SET utf8 */;");
-      break;
+/**
+ * Implementation of hook_schema().
+ */
+function image_attach_schema() {
+  $schema['image_attach'] => array(
+    'description' => t('Stores the image/node relationship.'),
+    'fields' => array(
+      'nid' => array(
+        'description' => t('Primary Key: The {node}.nid of the node.'),
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'iid' => array(
+        'description' => t('TODO'),
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+    ),
+  );
+}
 
-    case 'pgsql':
-      db_query("CREATE TABLE {image_attach} (
-        nid integer NOT NULL default '0',
-        iid integer NOT NULL default '0',
-        PRIMARY KEY (nid)
-      )");
-      db_query("CREATE INDEX {image_attach}_iid_idx ON {image_attach}(iid)");
-      break;
-  }
+/**
+ * Implementation of hook_install().
+ */
+function image_attach_install() {
+  drupal_install_schema('image_attach');
 }
 
+/**
+ * Implementation of hook_uninstall().
+ */
 function image_attach_uninstall() {
-  db_query('DROP TABLE {image_attach}');
+  drupal_uninstall_schema('image_attach');
   variable_del('image_attach_existing');
 }
 
Index: contrib/image_gallery/image_gallery.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/contrib/image_gallery/image_gallery.info,v
retrieving revision 1.4
diff -u -p -r1.4 image_gallery.info
--- contrib/image_gallery/image_gallery.info	18 Jul 2007 17:04:31 -0000	1.4
+++ contrib/image_gallery/image_gallery.info	9 Oct 2007 16:39:51 -0000
@@ -2,5 +2,6 @@
 name = Image Gallery
 description = Allows sorting and displaying of image galleries based on categories.
 package = Image
-dependencies = image taxonomy
-
+dependencies[] = image
+dependencies[] = taxonomy
+core = 6.x
Index: contrib/image_im_advanced/image_im_advanced.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/contrib/image_im_advanced/image_im_advanced.info,v
retrieving revision 1.1
diff -u -p -r1.1 image_im_advanced.info
--- contrib/image_im_advanced/image_im_advanced.info	26 Aug 2007 21:30:02 -0000	1.1
+++ contrib/image_im_advanced/image_im_advanced.info	9 Oct 2007 16:39:51 -0000
@@ -2,3 +2,4 @@
 name = ImageMagick Advanced Options
 description = Adds advanced options to the ImageMagick image toolkit.
 package = Image
+core = 6.x
Index: contrib/image_import/image_import.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/image/contrib/image_import/image_import.info,v
retrieving revision 1.3
diff -u -p -r1.3 image_import.info
--- contrib/image_import/image_import.info	18 Jul 2007 17:04:37 -0000	1.3
+++ contrib/image_import/image_import.info	9 Oct 2007 16:39:51 -0000
@@ -2,5 +2,6 @@
 name = Image Import
 description = Allows batches of images to be imported from a directory on the server.
 package = Image
-dependencies = image
+dependencies[] = image
+core = 6.x
 
