Author Topic: [1.5b2] DB-Upgrade fails: "specified key was too long..."  (Read 2707 times)

ThorstenW

  • Freshman
  • *
  • Posts: 34
    • View Profile
[1.5b2] DB-Upgrade fails: "specified key was too long..."
« on: July 09, 2009, 04:25:09 pm »
Hi,

was about to upgrade my old test installation to the current beta.
Seems I'm lucky enough to encounter DB upgrade Problems every time ;)

Recent error:

Quote
# Database schema transformations executed (total queries: 5)
# OpenGoo has been upgraded. You are now running OpenGoo 1.4.2 Enjoy!
# Upgrade script has connected to the database.
# Test query has been executed. Its safe to proceed with database migration.
#
# Failed to execute DB schema transformations. MySQL said: Specified key was too long; max key length is 1000 bytes
# Error upgrading to version 1.5-beta2

I looked through the "figazza" script but didn't find anything suspicious.

Greetings,
Thorsten

ThorstenW

  • Freshman
  • *
  • Posts: 34
    • View Profile
Re: [1.5b2] DB-Upgrade fails: "specified key was too long..."
« Reply #1 on: July 09, 2009, 04:41:20 pm »
Update:

Tracked it down to the PK creation of the following Table:

Quote
CREATE TABLE IF NOT EXISTS `<?php echo $table_prefix ?>template_object_properties` (
`template_id` INT( 10 ) NOT NULL ,
`object_id` INT( 10 ) NOT NULL ,
`object_manager` varchar(255) NOT NULL,
`property` VARCHAR( 255 ) NOT NULL ,
`value` TEXT NOT NULL ,
PRIMARY KEY ( `template_id` , `object_id` ,`object_manager`, `property` )
) ENGINE=<?php echo $engine ?> <?php echo $default_charset ?>;

For now, I created the PK without "property" to get around the limit. (and being able to do further testing ;) )

//edit:
next minor issue:
MySQL said: Unknown column 'is_order_by_asc' in 'og_reports'
at least, quite obvious^^

the rest went through smoothly:
# Database schema transformations executed (total queries: 26)
# 1 public files migrated to upload directory.
# OpenGoo has been upgraded. You are now running OpenGoo 1.5-beta2 Enjoy!


Hope, this feedback is helpful,
Thorsten
« Last Edit: July 09, 2009, 04:46:15 pm by ThorstenW »