Closed (fixed)
Project:
Simplenews RealName
Version:
7.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2013 at 05:32 UTC
Updated:
21 Feb 2013 at 19:30 UTC
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
Comment #1
emilymoi commentedI ran into this also. The fix above is the solution. Lets get this in.
Comment #2
sgabe commentedCommitted, thanks!