I get the error during d6 to d7 upgrade.

menu_token module
Update #7000

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

CommentFileSizeAuthor
#3 menu_token-n1602168.patch630 bytesdamienmckenna

Comments

damienmckenna’s picture

This is because the menu_token table exists in the D6 version, there was no reason to re-create it.

damienmckenna’s picture

Title: Table menu_token already exists during d6 to d7 upgrade » Table menu_token already exists during d6 to d7 upgrade, no hook_schema()
Priority: Normal » Major

So basically menu_token_update_7000() should really be a hook_schema(), as there's isn't one.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new630 bytes

This renames menu_token_update_7000() to menu_token_schema() and removes the unnecessary db_create_table() call.

develcuy’s picture

Status: Needs review » Fixed

thanks @DamienMcKenna!

Status: Fixed » Closed (fixed)

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