No need to call drupal_install_schema() from hook_install()
Remove drupal_install_schema('bestreply'); from bestreply_install() hook in besterply.install file

/**
 * Implementation of hook_install().
 */
function bestreply_install() {

}

Reference: http://api.drupal.org/api/drupal/modules!system!system.api.php/function/...

Comments

taslett’s picture

Priority: Critical » Minor

Thanks for pointing it out khoomy.
I'll fix it in the next release.

taslett’s picture

Status: Active » Closed (fixed)
michaelsw’s picture

Now it's July 2012 and this 'automagick install/uninstall tables' does not work yet. It started when Drupal 6 moved to Drupal 7 and that was 2010? How much do one need to reset and reinstall to get Drupal 7 to install a schema after one has removed the table one time?

I even tried the old 'brutal' way:

function mymodule_install() {
  drupal_install_schema('my_schema');
}

but no! The tables are still not in the db.

taslett’s picture

Hi Michaelsw,
Are you seeing any messages in the logs related to the install.

It worked perfectly for me in D7, here's the log messages (start at the bottom).
system 07/09/2012 - 06:25 bestreply module enabled. admin
system 07/09/2012 - 06:25 bestreply module installed. admin
system 07/09/2012 - 06:22 bestreply module uninstalled. admin
system 07/09/2012 - 06:22 bestreply module disabled. admin

Worked perfectly, the table disappeared after uninstall then show up again when I reinstalled.

If you are not getting errors in the watchdog logs, try looking at your PHP log to see if anything shows up there.

michaelsw’s picture

After some disable, uninstall, clear caches, remove module folder, refresh admin module page, move back module folder and enable module, it finally worked.