5
5
ALTER TABLE DistroSeriesDifference
6
6
ADD COLUMN parent_series INTEGER
7
7
CONSTRAINT distroseriesdifference__parentseries__fk REFERENCES distroseries;
8
9
-- we need to set it, but only for Ubuntu.
9
10
UPDATE DistroSeriesDifference SET parent_series = (SELECT id from DistroSeries WHERE name = 'sid') FROM Distribution, DistroSeries WHERE Distribution.name = 'ubuntu' AND DistroSeries.id = derived_series AND DistroSeries.distribution = Distribution.id;
10
11
ALTER TABLE DistroSeriesDifference ALTER COLUMN parent_series SET NOT NULL;