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">Dave Reid<br><a href="mailto:dave@davereid.net">dave@davereid.net</a><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">austin.einter@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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>