# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: millennium.install
--- millennium.install Base (1.1.2.5.4.1)
+++ millennium.install Locally Modified (Based On 1.1.2.5.4.1)
@@ -297,6 +297,17 @@
   return $ret;
 }
 
+function drupal_uninstall_schema($module) {
+  $schema = drupal_get_schema_unprocessed($module);
+  _drupal_initialize_schema($module, $schema);
+
+  $ret = array();
+  foreach ($schema as $table) {
+    db_drop_table($ret, $table['name']);
+  }
+  return $ret;
+}
+
 function drupal_get_schema_unprocessed($module, $table = NULL) {
   // Load the .install file to get hook_schema.
   module_load_include('install', $module);
@@ -317,6 +328,10 @@
   }
 }
 
+function db_drop_table(&$ret, $table) {
+  $ret[] = update_sql('DROP TABLE {'. $table .'}');
+}
+
 function db_create_table_sql($name, $table) {
 
   if (empty($table['mysql_suffix'])) {
@@ -432,7 +447,9 @@
   return implode(', ', $ret);
 }
 
+if (!function_exists('update_sql')) {
 function update_sql($sql) {
   $result = db_query($sql);
   return array('success' => $result !== FALSE, 'query' => check_plain($sql));
 }
+}
\ No newline at end of file
