=== added file 'modules/node/node.install'
--- modules/node/node.install	1970-01-01 00:00:00 +0000
+++ modules/node/node.install	2006-11-20 17:15:19 +0000
@@ -0,0 +1,19 @@
+<?php
+
+function node_delete_type($type) {
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      // first, nodes with comment
+      db_query("DELETE FROM {node} n, {node_comment_statistics} nc, {node_revision} nr WHERE n.nid = nc.nid AND nc.nid = nr.nid AND n.type = '%s'", $type);
+      // second, nodes without comment
+      db_query("DELETE FROM {node} n, {node_revision} nr WHERE n.nid = nr.nid AND n.type = '%s'", $type);
+      break;
+    case 'pgsql':
+      db_query("DELETE FROM {node_comment_statistics} WHERE nid IN (SELECT nid FROM {node} n WHERE n.type = '%s')", $type);
+      db_query("DELETE FROM {node_revision} WHERE nid IN (SELECT nid FROM {node} n WHERE  n.type = '%s')", $type);
+      db_query("DELETE FROM {node} n WHERE n.type = '%s'", $type);
+      break;
+  }
+  db_query("DELETE FROM {node_type} WHERE type = '%s'", $type);
+}

=== modified file 'modules/book/book.install'
--- modules/book/book.install	2006-09-01 07:40:07 +0000
+++ modules/book/book.install	2006-11-20 17:10:06 +0000
@@ -36,5 +36,7 @@ function book_install() {
  * Implementation of hook_uninstall().
  */
 function book_uninstall() {
+  include_once drupal_get_path('module', 'node') .'/node.install';
+  node_delete_type('book');
   db_query('DROP TABLE {book}');
 }

=== modified file 'modules/forum/forum.install'
--- modules/forum/forum.install	2006-09-01 07:40:07 +0000
+++ modules/forum/forum.install	2006-11-20 17:10:27 +0000
@@ -34,8 +34,9 @@ function forum_install() {
  * Implementation of hook_uninstall().
  */
 function forum_uninstall() {
+  include_once drupal_get_path('module', 'node') .'/node.install';
+  node_delete_type('poll');
   db_query('DROP TABLE {forum}');
-  db_query("DELETE FROM {node} WHERE type = 'forum'");
   variable_del('forum_containers');
   variable_del('forum_nav_vocabulary');
   variable_del('forum_hot_topic');

=== modified file 'modules/poll/poll.install'
--- modules/poll/poll.install	2006-09-01 07:40:07 +0000
+++ modules/poll/poll.install	2006-11-20 17:09:32 +0000
@@ -71,6 +71,8 @@ function poll_install() {
  * Implementation of hook_uninstall().
  */
 function poll_uninstall() {
+  include_once drupal_get_path('module', 'node') .'/node.install';
+  node_delete_type('poll');
   db_query('DROP TABLE {poll}');
   db_query('DROP TABLE {poll_votes}');
   db_query('DROP TABLE {poll_choices}');

=== modified file 'modules/system/system.install'
--- modules/system/system.install	2006-11-20 03:39:02 +0000
+++ modules/system/system.install	2006-11-20 17:09:11 +0000
@@ -2,7 +2,7 @@
 // $Id: system.install,v 1.41 2006/11/20 03:39:02 drumm Exp $
 
 define('DRUPAL_MINIMUM_PHP',    '4.3.3');
-define('DRUPAL_MINIMUM_MYSQL',  '3.23.17'); // If using MySQL
+define('DRUPAL_MINIMUM_MYSQL',  '4.0.3'); // If using MySQL
 define('DRUPAL_MINIMUM_PGSQL',  '7.3');  // If using PostgreSQL
 define('DRUPAL_MINIMUM_APACHE', '1.3');  // If using Apache
 

