### Eclipse Workspace Patch 1.0
#P dbcron
Index: dbcron.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dbcron/dbcron.install,v
retrieving revision 1.1
diff -u -r1.1 dbcron.install
--- dbcron.install	22 Jan 2006 06:18:01 -0000	1.1
+++ dbcron.install	1 Feb 2008 20:41:34 -0000
@@ -7,6 +7,29 @@
  * implementations of hook_update_N(), unless indicated otherwise.
  */
 
+function dbcron_install() {
+  switch ($GLOBALS['db_type']) {
+    case 'mysql':
+    case 'mysqli':
+      db_query("CREATE TABLE {dbcron} (
+				dqid int(10) unsigned NOT NULL auto_increment,
+  			title varchar(128) NOT NULL default '',
+  			body longtext NOT NULL default '',
+  			run_interval int(11) NOT NULL default 0,
+  			last_run int(11) NOT NULL default 0,
+  			exec_speed int(11) NOT NULL default 0,
+  			PRIMARY KEY (dqid),
+  			UNIQUE KEY title (title),
+  			KEY run_interval (run_interval)
+				) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
+      break;
+  }
+}
+
 function dbcron_update_1() {
   return _system_update_utf8(array('dbcron'));
 }
+
+function dbcron_uninstall() {
+  db_query('DROP TABLE {dbcron}');
+}
\ No newline at end of file
