<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Need a bit more info to help. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Can I assume from your hooks that you are
doing this in drupal 6 and that the name of your module is
resume_submit.module and the name of your install file is
resume_submit.install? <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Was the module installed when you created
the install file? Have you tried uninstalling the module and then re-enabling
it? <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
support-bounces@drupal.org [mailto:support-bounces@drupal.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Austin Einter<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, March 16, 2011
8:45 PM<br>
<b><span style='font-weight:bold'>To:</span></b> support@drupal.org;
development@drupal.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> [support] Module install
/ database schema doubt</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi All<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I have a small install file as below.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<div>
<p class=MsoNormal><em><i><font size=3 color="#000099" face="Times New Roman"><span
style='font-size:12.0pt;color:#000099'><?php</span></font></i></em><i><font
color="#000099"><span style='color:#000099;font-style:italic'><br>
<em><i><font face="Times New Roman">function resume_submit_install() </font></i></em><br>
<em><i><font face="Times New Roman">{</font></i></em><br>
<em><i><font face="Times New Roman">
drupal_install_schema('resume_table');</font></i></em><br>
<em><i><font face="Times New Roman">}</font></i></em><br>
<em><i><font face="Times New Roman">function resume_submit_uninstall() </font></i></em><br>
<em><i><font face="Times New Roman">{</font></i></em><br>
<em><i><font face="Times New Roman">
drupal_uninstall_schema('resume_table');</font></i></em><br>
<em><i><font face="Times New Roman">}</font></i></em><br>
<em><i><font face="Times New Roman">function resume_table_schema() </font></i></em><br>
<em><i><font face="Times New Roman">{</font></i></em><br>
<em><i><font face="Times New Roman"> $schema['resume_table']
= array(</font></i></em><br>
<em><i><font face="Times New Roman"> </font></i></em><br>
<em><i><font face="Times New Roman"> 'fields' => array(</font></i></em><br>
<em><i><font face="Times New Roman"> 'uid' =>
array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE,
'default' => 0),</font></i></em><br>
<em><i><font face="Times New Roman"> 'name' =>
array('type' => 'varchar', 'not null' => TRUE, 'default' => ''),</font></i></em><br>
<em><i><font face="Times New Roman"> 'email' => array('type'
=> 'varchar', 'not null' => TRUE, 'default' => ''),</font></i></em><br>
<em><i><font face="Times New Roman"> 'altemail' => array('type'
=> 'varchar', 'not null' => TRUE, 'default' => ''),</font></i></em><br>
<em><i><font face="Times New Roman"> ),</font></i></em><br>
<em><i><font face="Times New Roman"> </font></i></em><br>
<em><i><font face="Times New Roman"> 'indexes' =>
array('uid' => array('uid'),),</font></i></em><br>
<em><i><font face="Times New Roman"> </font></i></em><br>
<em><i><font face="Times New Roman"> 'primary key' =>
array('name'),</font></i></em><br>
<em><i><font face="Times New Roman"> );</font></i></em></span></font></i><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><em><i><font size=3 color="#000099" face="Times New Roman"><span
style='font-size:12.0pt;color:#000099'> return $schema;</span></font></i></em><i><font
color="#000099"><span style='color:#000099;font-style:italic'><br>
<em><i><font face="Times New Roman">}</font></i></em></span></font></i><o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>When I install the custom module, it installs without any
warning/error.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>But on form submit, when I try to save some data, it gives warning
(table does not exist). <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Can somebody help me to understand, what could be the issue.<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thanks<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><st1:City w:st="on"><st1:place w:st="on"><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Austin</span></font></st1:place></st1:City><o:p></o:p></p>
</div>
</div>
</body>
</html>