Closed Bug 481241 Opened 16 years ago Closed 16 years ago

Replace auto-incrementing collection IDs with UUIDs

Categories

(addons.mozilla.org Graveyard :: Collections, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fligtar, Assigned: lorchard)

References

Details

Attachments

(1 file)

For security reasons, we'd like to replace the current auto-incrementing IDs used by collections with UUIDs. Les, do you mind taking a look at this?
Here's a patch that I think does the trick, looking for a reviewer since rdoherty's out
Blocks: 481149
Attachment #366957 - Flags: review?(clouserw)
Comment on attachment 366957 [details] [diff] [review] UUID added to collection fields, swapped out references to ID for UUID tossing an r? to clouserw, since rdoherty's out. hopefully the addons bandwagon branch doesn't give too much trouble
Attachment #366957 - Flags: review?(clouserw) → review?(rdoherty)
Comment on attachment 366957 [details] [diff] [review] UUID added to collection fields, swapped out references to ID for UUID Tested, looks good and works well.
Attachment #366957 - Flags: review?(rdoherty) → review+
Comment on attachment 366957 [details] [diff] [review] UUID added to collection fields, swapped out references to ID for UUID FYI the lines: +-- ALTER TABLE `collections` ADD `uuid` CHAR(36) NOT NULL DEFAULT ''; +-- UPDATE `collections` SET `uuid`=uuid() WHERE `uuid`=''; +-- ALTER TABLE ADD UNIQUE KEY `uuid` (`uuid`); I assumed weren't part of the patch. 'ALTER TABLE ADD UNIQUE KEY `uuid` (`uuid`);' should be 'ALTER TABLE `collections` ADD UNIQUE KEY `uuid` (`uuid`);'
checked in as r23586 Yeah, those lines are meant for the database updates page. Forgot I left them in there, but wanted to keep track of them because the order is a little tricky to ensure that there are unique values already present before adding a unique key.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: