When I try to do a simple install I get this error:

DatabaseSchemaObjectExistsException: Table personal_notes_notes already exists. in DatabaseSchema->createTable() (line 657 of /REPLACED/REPLACED/REPLACED/REPLACED/includes/database/schema.inc).

What am I doing wrong? I hope I'm not this dumb! j/k.... but please any idea why. When I uninstall the table personal_notes_notes gets dropped and it's not there when I do fresh install, which I've tried both the dev and release version and I get the same SQL error.

Any help would be great thanks.

CommentFileSizeAuthor
#1 2135819-fix-install-errors.patch626 bytesydahi

Comments

ydahi’s picture

StatusFileSize
new626 bytes

Database schemas un(install) automatically when a module is enabled/disabled, so hook_install or hook_uninstall is no longer needed. Refer to this: https://www.drupal.org/node/224333#install-schema

Apply the attached patch to install without error.

marty’s picture

Thanks ydahi! I've just put together your patch in a new release - 7.x-1.1.

sagesolutions’s picture

Status: Active » Fixed
sagesolutions’s picture

Status: Fixed » Closed (fixed)