<div>Hi David</div>
<div>Plesee see response inline.</div>
<div><br>With help of Devel module, when I reinstalled the module, it was creating tables in database and worked fine.</div>
<div> </div>
<div><br>Best Regards,</div>
<div>Austin</div>
<div> </div>
<div> </div>
<div class="gmail_quote">On Thu, Mar 17, 2011 at 8:50 PM, Metzler, David <span dir="ltr"><<a href="mailto:metzlerd@evergreen.edu">metzlerd@evergreen.edu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Need a bit more info to help. </span></font></p>
<p class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </span></font></p>
<p class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">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? </span></font></p>
<p class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"></span></font></p></div></div></blockquote>
<div> </div>
<div> </div>
<div>It is Drupal 6. Yes, module file is resume_submit.module and install file is resume_submit.install.</div>
<div> </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Was the module installed when you created the install file? Have you tried uninstalling the module and then re-enabling it? </span></font></p>
</div></div></blockquote>
<div> </div>
<div> </div>
<div>After creating install file, I disabled module, cleared cache, enabled module. With this, install was not taking effect (tables in database were not cretaed).</div>
<div> </div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<p class="MsoNormal"><font color="navy" size="2" face="Arial"><span style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"> </span></font></p>
<div>
<div style="TEXT-ALIGN: center" class="MsoNormal" align="center"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt">
<hr align="center" size="2" width="100%">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold">From:</span></font></b><font size="2" face="Tahoma"><span style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt"> <a href="mailto:support-bounces@drupal.org" target="_blank">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org" target="_blank">support-bounces@drupal.org</a>] <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> <a href="mailto:support@drupal.org" target="_blank">support@drupal.org</a>; <a href="mailto:development@drupal.org" target="_blank">development@drupal.org</a><br>
<b><span style="FONT-WEIGHT: bold">Subject:</span></b> [support] Module install / database schema doubt</span></font></p></div>
<div>
<div></div>
<div class="h5">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt"> </span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt">Hi All</span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt">I have a small install file as below.</span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR: #000099; FONT-SIZE: 12pt"><?php</span></font></i></em><i><font color="#000099"><span style="FONT-STYLE: italic; COLOR: #000099"><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></p></div>
<div>
<p class="MsoNormal"><em><i><font color="#000099" size="3" face="Times New Roman"><span style="COLOR: #000099; FONT-SIZE: 12pt"> return $schema;</span></font></i></em><i><font color="#000099"><span style="FONT-STYLE: italic; COLOR: #000099"><br>
<em><i><font face="Times New Roman">}</font></i></em></span></font></i></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt"> </span></font></p></div></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt">When I install the custom module, it installs without any warning/error.</span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt">But on form submit, when I try to save some data, it gives warning (table does not exist). </span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt">Can somebody help me to understand, what could be the issue.</span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt"> </span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt">Thanks</span></font></p></div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="FONT-SIZE: 12pt">Austin</span></font></p></div></div></div></div></div><br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</blockquote></div><br>