[development] install file problem

Kalyani Waychal kalyani.waychal at oscpro.in
Sat Apr 5 08:27:37 UTC 2008


 Hi all,

we are building a module in drupal, we
wrote .module, .info and .install files in that module folder. the
problem is that, the tables we wrote in .install file are not getting
created in phpmyadmin.
A .install file is run the first time, a module is enabled, and is
used to run setup procedures as required by the module. The most
common task is creating database tables and fields.


Now we get the following warnings:

# user warning: Table 'drupal.demoinvoice_invoice' doesn't exist
query: select max(invoice_no) from demoinvoice_invoice in /opt/lampp/
htdocs/drupal56/includes/database.mysql.inc on line 172.

user warning: Table 'drupal.demoinvoice_client' doesn't exist query:
select short_name from demoinvoice_client in /opt/lampp/htdocs/
drupal56/includes/database.mysql.inc on line 172.

user warning: Table 'drupal.demoinvoice_bankacc' doesn't exist
query: select description from demoinvoice_bankacc in /opt/lampp/
htdocs/drupal56/includes/database.mysql.inc on line 172.


Regards

Kalyani Waychal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20080405/ce3e6d2f/attachment.htm 


More information about the development mailing list