Accordingly to this page http://api.drupal.org/api/drupal/modules%21system%21system.api.php/funct...

There is no need to call drupal_install_schema and drupal_uninstall_schema directly

/**
 * Implementation of hook_install().
 */
function simplenews_realname_install() {
  drupal_install_schema('simplenews_realname');
}

/**
 * Implementation of hook_uninstall().
 */
function simplenews_realname_uninstall() {
  drupal_uninstall_schema('simplenews_realname');
}

because of this calls during installation of this moddule I see error:

DatabaseSchemaObjectExistsException: Table <em class="placeholder">simplenews_realname</em> already exists. in DatabaseSchema->createTable() (line 657 of /includes/database/schema.inc).

You try to create table manually , after drupal has created it automatically.

Removing this two hooks solves this problem

Comments

emilymoi’s picture

Status: Active » Needs review

I ran into this also. The fix above is the solution. Lets get this in.

sgabe’s picture

Title: drupal_install_schema in simplenews_realname_install » No need to call drupal_(un)install_schema functions
Status: Needs review » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.