The database tables should not use auto_increment in their primary keys (for database compatibility reasons). Here's a patch to safely switch them to using the sequences table and the db_next_id() function.

Comments

quicksketch’s picture

Status: Needs review » Needs work

Hmm, looks like the changes to imagecache.module required in this patch are too close the lines changed in the imrove admin interface patch. The two patches cannot be applied on top each other without a conflict. After the admin interface patch is applied I'll roll another patch for this.

quicksketch’s picture

StatusFileSize
new5.01 KB

This new patch applies cleanly AFTER running the patch for Issue 89164.

quicksketch’s picture

Status: Needs work » Needs review
quicksketch’s picture

StatusFileSize
new5.76 KB

My PGSQL is a little weak. Here's another patch which will accommodate pgsql users upgrading.

quicksketch’s picture

StatusFileSize
new8.07 KB

Due to my shaky pgsql I downloaded a copy just to test out everything. I've learned a lot about pgsql and I'm confident this patch will work great on both mySQL/PGSQL. I also added in a few lines to ensure that mySQL 4.1 creates proper UTF8 tables.

dopry’s picture

committed as 1.9.2.6 with a couple minor fixes and clean up to work with my last commit.

quicksketch’s picture

Figures this is all out of date now with the latest changes ;-).

@dopry Want me to roll a patch to the latest 4.7 branch or should I leave it to you?

dopry’s picture

Status: Needs review » Fixed

oh yeah... fixed.

quicksketch’s picture

StatusFileSize
new0 bytes

You'd like to think so wouldn't you! ;-)

This includes corrections to the pgsql and adds UTF8 to mySQL table creation. Thanks!

dopry’s picture

Can you repost, it came in 0 length.

quicksketch’s picture

StatusFileSize
new4.27 KB

Man, cross-developer patch craziness! Here it is again.

dopry’s picture

commited latest patch... btw... all the tabled have also been switched to singular names and all occurences of ruleset should be preset now.

Anonymous’s picture

Status: Fixed » Closed (fixed)