Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Made downloads and subscriptions unique by programme or episode id. #113
Original report from Matt Robinson at 12:35:48 on 2010-05-29
Currently, the database will quite happily allow multiple entries for a single episode in the downloads table, and for a single programme in the subscriptions table. This is incorrect, as if this does happen, the application will crash because it assumes there will not be multiple entries for a single programme or episode.
To resolve this issue, a unique constraint should be added to the progid column in the subscriptions table, and to the epid column in the downloads table.
Imported from Bug 270 in the NerdoftheHerd.com Bugzilla.
Original comment from Matt Robinson at 16:31:17 on 2010-05-29
Updated downloads table from:
CREATE TABLE [downloads]([epid] integer,
CREATE TABLE [downloads]([epid] integer UNIQUE NOT NULL,