<div>Lee, Dave, Vaibhav</div>
<div>Thanks for your help.</div>
<div> </div>
<div>With help of devel module, I reinstalled my custom module and it is working fine now.</div>
<div> </div>
<div> </div>
<div>Best Regards</div>
<div>Austin<br><br></div>
<div class="gmail_quote">On Thu, Mar 17, 2011 at 11:44 AM, Dave Reid <span dir="ltr"><<a href="mailto:dave@davereid.net">dave@davereid.net</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Also, your module appears to be named 'resume_submit' so resume_table_schema should be named resume_submit_schema and you should call drupal_(un)install_schema('resume_submit') as the parameter is the module name whos schema is being (un)installed. It's fine to leave the table name as resume_table.
<div><br clear="all"><font color="#888888">Dave Reid<br><a href="mailto:dave@davereid.net" target="_blank">dave@davereid.net</a></font>
<div>
<div></div>
<div class="h5"><br><br><br>
<div class="gmail_quote">On Wed, Mar 16, 2011 at 10:44 PM, Austin Einter <span dir="ltr"><<a href="mailto:austin.einter@gmail.com" target="_blank">austin.einter@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hi All</div>
<div>I have a small install file as below.</div>
<div> </div>
<div>
<div><em><font color="#000099"><?php<br>function resume_submit_install() <br>{<br> drupal_install_schema('resume_table');<br>}<br>function resume_submit_uninstall() <br>{<br> drupal_uninstall_schema('resume_table');<br>
}<br>function resume_table_schema() <br>{<br> $schema['resume_table'] = array(<br> <br> 'fields' => array(<br> 'uid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),<br>
'name' => array('type' => 'varchar', 'not null' => TRUE, 'default' => ''),<br> 'email' => array('type' => 'varchar', 'not null' => TRUE, 'default' => ''),<br>
'altemail' => array('type' => 'varchar', 'not null' => TRUE, 'default' => ''),<br> ),<br> <br> 'indexes' => array('uid' => array('uid'),),<br>
<br> 'primary key' => array('name'),<br> );</font></em></div>
<div><em><font color="#000099"> return $schema;<br>}</font></em></div>
<div> </div>
<div> </div></div>
<div>When I install the custom module, it installs without any warning/error.</div>
<div>But on form submit, when I try to save some data, it gives warning (table does not exist). </div>
<div> </div>
<div>Can somebody help me to understand, what could be the issue.</div>
<div> </div>
<div>Thanks</div>
<div>Austin</div></blockquote></div><br></div></div></div></blockquote></div><br>