Closed (fixed)
Project:
Amazon Product Advertisement API
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
5 Nov 2008 at 18:18 UTC
Updated:
25 Mar 2017 at 20:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedFor MySQL, an upgrade path isn't needed. MySQL can cope with the SQL for defining these keys and make the right keys. I don't know about Postgres. Schema module complains about the keys being incorrect in the schema, and they don't match the Schema API definitions which call for "an array of one or more key column specifers that form the primary key."
Comment #2
Anonymous (not verified) commentedThe attached patch should add an update scheme (this will display an error for installations, where the primary keys have already been added. But I'm not sure whether all supported db-systems could read the previous primary key scheme..)
In addition it changes amazon_uninstall (using drupal_uninstall_schema instead of db_query)
Comment #3
eaton commentedA slightly modified version of the patch has been committed -- the update hook first drops any existing primary keys, then re-adds them. Thanks for the fix!