Closed (duplicate)
Project:
ImageCache
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Nov 2008 at 11:18 UTC
Updated:
23 Dec 2008 at 23:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
marcvangend(Sorry for the error with the < code > tag!)
By the way, I forgot to mention I had to do the same with the actionid column in imagecache_action in order to add actions.
Comment #2
techninja commentedYep, same problem here. Too bad I decided it was my old d5.x presets before noticing/checking the issue queue (And deleting them all). Good call marcvangend!
I can switch up the table, but unfortunately this leaves our less advanced brethren out of the loop (Not to mention, it might very well be a nasty hack, as I recall drupal was supposed to handle auto-increments through the database abstraction layer because of shoddy support for auto-increment in DB systems other than mysql)
Suggestions anyone?
Comment #3
yhahn commentedYou can re-implement the primary keys (which will receive the auto increment property) with the following snippet in imagecache.install using the Schema API.
Comment #4
dopry commented@yhahn: can you post as a patch?
Comment #5
drewish commentedRead the docs for hook_update_N, you can't reference the schema in an update. Think about it for a minute... what happens after you update the schema and someone goes to run this update... assumptions you're making about the schema will no longer be true.
Comment #6
drewish commentedtotally untested but here's the correct way to do this.
Comment #7
drewish commentedsee #304376: Update function from 5.x -> 6.x