Image style names are supposed to be unique, but this is not reflected in the database schema.

Comments

mr.baileys’s picture

Yes, they should be unique. The interface already imposes this restraint through validation, so I agree it makes sense to do the same in the database.

Reviewed, applied, tested, RTBC.

c960657’s picture

Issue tags: -quickfix +Quick fix
mr.baileys’s picture

Status: Needs review » Reviewed & tested by the community

Strange, I though this was set to RTBC in #1...

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

gábor hojtsy’s picture

Priority: Normal » Critical
Status: Fixed » Needs work

Warning: this modification was not made in the upgrade path. image_update_7000() still sets a plain index, not a unique index.

mr.baileys’s picture

Status: Needs work » Needs review
Issue tags: -Quick fix
StatusFileSize
new525 bytes

Sorry, didn't occur to me that the upgrade path needed updating too. Patch attached.

recidive’s picture

Status: Needs review » Reviewed & tested by the community

The patch fixes the upgrade path as advised.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)

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