Image style names are supposed to be unique, but this is not reflected in the database schema.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | image_update_path.patch | 525 bytes | mr.baileys |
| image-style-unique-1.patch | 940 bytes | c960657 |
Image style names are supposed to be unique, but this is not reflected in the database schema.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | image_update_path.patch | 525 bytes | mr.baileys |
| image-style-unique-1.patch | 940 bytes | c960657 |
Comments
Comment #1
mr.baileysYes, 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.
Comment #2
c960657 commentedComment #3
mr.baileysStrange, I though this was set to RTBC in #1...
Comment #4
dries commentedCommitted to CVS HEAD. Thanks.
Comment #5
gábor hojtsyWarning: this modification was not made in the upgrade path. image_update_7000() still sets a plain index, not a unique index.
Comment #6
mr.baileysSorry, didn't occur to me that the upgrade path needed updating too. Patch attached.
Comment #7
recidive commentedThe patch fixes the upgrade path as advised.
Comment #8
dries commentedCommitted to CVS HEAD. Thanks.