<?php
function s5slideshow_install() {
  $result = array();
  
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':  
      db_query ("CREATE TABLE {s5slideshow} (
  		  nid int(10) unsigned NOT NULL default '0',
	  	  theme varchar(128) NOT NULL,
		    subtitle varchar(128) NOT NULL,
  		  author_name varchar(128) NOT NULL,
	  	  author_url varchar(128) NOT NULL,
 	      PRIMARY KEY  (nid)
        ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;"
      );
    
  	  db_query ("CREATE TABLE s5slide (
	    	nid int(10) unsigned NOT NULL default '0',
  	  	handout text NOT NULL,
	    	handout_format int(4) NOT NULL default '0',
  	  	slideshow int(10) unsigned NOT NULL default '0',
  	   	weight int(4) NOT NULL default '0',
	  	  PRIMARY KEY  (nid)
        ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;"
      );
      
      break;
   
    case 'pgsql':
      break;
  }
}
