Index: fb.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fb/fb.install,v
retrieving revision 1.4
diff -u -p -r1.4 fb.install
--- fb.install	16 Apr 2009 20:29:17 -0000	1.4
+++ fb.install	10 Jun 2009 00:31:24 -0000
@@ -8,7 +8,15 @@ function _fb_install_alter_session_table
   // Make sessions.sid column large enough for Facebook's session_keys.
   if (variable_get('fb_session_long_keys', TRUE)) {
     // db_change_column fails.  http://drupal.org/node/429786
-    db_query('ALTER TABLE {sessions} MODIFY sid varchar(255)');
+
+    $ret = array();
+    $spec = array(
+      'description' => "Primary key: A session ID. The value is generated by PHP's Session API.",
+      'type' => 'varchar',
+      'length' => 255,
+      'not null' => TRUE,
+      'default' => '');
+    db_change_field($ret, 'sessions', 'sid', 'sid', $spec);
   }
 }
 
Index: fb_app.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fb/fb_app.install,v
retrieving revision 1.10
diff -u -p -r1.10 fb_app.install
--- fb_app.install	22 May 2009 21:49:25 -0000	1.10
+++ fb_app.install	10 Jun 2009 00:31:24 -0000
@@ -28,7 +28,7 @@ function fb_app_schema() {
   $schema['fb_app'] = array(
     'description' => 'Main FB_APP table',
     'fields' => array(
-      'nid' => array('type' => 'int', 'length' => 11, 'unsigned' => TRUE, 'not null' => TRUE, ),
+      'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),
       'label' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, ),
       'apikey' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, ),
       'id' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, ),
@@ -43,9 +43,9 @@ function fb_app_schema() {
   );
   $schema['fb_app_block'] = array(
     'fields' => array(
-      'nid' => array('type' => 'int', 'length' => 11, 'unsigned' => TRUE, 'not null' => TRUE, ),
+      'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),
       'delta' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, ),
-      'format' => array('type' => 'int', 'length' => 11, 'default' => 0, ),
+      'format' => array('type' => 'int', 'default' => 0, ),
       'body' => array('type' => 'text', 'size' => 'big', 'not null' => TRUE, ),
     ),
     'primary key' => array('nid', 'delta'),
Index: fb_feed.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fb/fb_feed.install,v
retrieving revision 1.3
diff -u -p -r1.3 fb_feed.install
--- fb_feed.install	24 Apr 2009 22:11:12 -0000	1.3
+++ fb_feed.install	10 Jun 2009 00:31:24 -0000
@@ -1,22 +1,39 @@
 <?php
+
+/**
+ * hook_install()
+ */
 function fb_feed_install() {
-  switch ($GLOBALS['db_type']) {
-    case 'mysql':
-    case 'mysqli':
-      db_query("
-CREATE TABLE IF NOT EXISTS {fb_feed_template} (
-nid int(11) unsigned NOT NULL,
-fb_app_nid int(11) unsigned NOT NULL,
-label varchar(128) NOT NULL,
-apikey varchar(128) NOT NULL,
-bundle_id BIGINT UNSIGNED NOT NULL,
-fb_feed_data longtext,
-PRIMARY KEY (nid),
-UNIQUE KEY (label)
-) /*!40100 DEFAULT CHARACTER SET UTF8 */;
-");
-  }
+  // Create tables.
+  drupal_install_schema('fb_feed');
+}
+
+/**
+ * hook_uninstall()
+ */
+function fb_feed_uninstall() {
+  // Remove tables.
+  drupal_uninstall_schema('fb_feed');
+}
+
+function fb_feed_schema() {
+  $schema['fb_feed_template'] = array(
+    'description' => 'Main FB_APP table',
+    'fields' => array(
+      'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),
+      'fb_app_nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),
+      'label' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, ),
+      'apikey' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, ),
+      'bundle_id' => array('type' => 'int', 'size' => 'big', 'unsigned' => TRUE, 'not null' => TRUE, ),
+      'fb_feed_data' => array('type' => 'text', 'size' => 'big', ),
+    ),
+    'unique keys' => array(
+      'apikey' => array('label'),
+    ),
+    'primary key' => array('nid'),
+  );
 
+  return $schema;
 }
 
 /**
Index: fb_user.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fb/fb_user.install,v
retrieving revision 1.8
diff -u -p -r1.8 fb_user.install
--- fb_user.install	20 May 2009 00:17:41 -0000	1.8
+++ fb_user.install	10 Jun 2009 00:31:24 -0000
@@ -21,16 +21,16 @@ function fb_user_uninstall() {
 
 
 function fb_user_schema() {
-  $schema['fb_user_app'] = 
+  $schema['fb_user_app'] =
     array('fields' => array('apikey' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, ),
-                            'fbu' => array('type' => 'int', 'length' => 11, 'unsigned' => TRUE, 'not null' => TRUE, ),
+                            'fbu' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),
                             'uid' => array('type' => 'int', 'size' => 'normal', 'not null' => TRUE, ),
-                            'added' => array('type' => 'int', 'length' => 4, 'unsigned' => TRUE, 'not null' => TRUE, ),
+                            'added' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),
                             'proxied_email' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE),
-                            'time_cron' => array('type' => 'int', 'length' => 11, 'unsigned' => TRUE, 'not null' => TRUE, ),
-                            'time_access' => array('type' => 'int', 'length' => 11, 'unsigned' => TRUE, 'not null' => TRUE, ),
+                            'time_cron' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),
+                            'time_access' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, ),
                             'session_key' => array('type' => 'varchar', 'length' => 255, 'not null' => FALSE, ),
-                            'session_key_expires' => array('type' => 'int', 'length' => 11, 'unsigned' => TRUE, 'not null' => FALSE, ),
+                            'session_key_expires' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, ),
           ),
           'primary key' => array('apikey', 'fbu'),
           'unique keys' => array(
Index: contrib/fb_register.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/fb/contrib/fb_register.install,v
retrieving revision 1.1
diff -u -p -r1.1 fb_register.install
--- contrib/fb_register.install	20 May 2009 00:18:49 -0000	1.1
+++ contrib/fb_register.install	10 Jun 2009 00:31:24 -0000
@@ -11,7 +11,7 @@ function fb_register_uninstall() {
 function fb_register_schema() {
   $schema['fb_register'] = array(
     'fields' => array(
-      'uid' => array('type' => 'int', 'length' => 11, 'unsigned' => TRUE, 'not null' => TRUE),
+      'uid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE),
       'email_hash' => array('type' => 'varchar', 'length' => 255),
     ),
     'primary_key' => array('uid'),
