Merge lp:~stevenk/launchpad/db-add-processor into lp:launchpad/db-devel

Proposed by Steve Kowalik
Status: Merged
Approved by: Steve Kowalik
Approved revision: no longer in the source branch.
Merged at revision: 12516
Proposed branch: lp:~stevenk/launchpad/db-add-processor
Merge into: lp:launchpad/db-devel
Prerequisite: lp:~stevenk/launchpad/add-new-processor-api
Diff against target: 18 lines (+14/-0)
1 file modified
database/schema/patch-2209-49-0.sql (+14/-0)
To merge this branch: bzr merge lp:~stevenk/launchpad/db-add-processor
Reviewer Review Type Date Requested Status
Stuart Bishop (community) db Approve
William Grant db Pending
Review via email: mp+185700@code.launchpad.net

Commit message

Add new Processor columns to DistroArchSeries and ArchiveArch, and a restricted column to Processor.

Description of the change

Add new Processor columns to DistroArchSeries and ArchiveArch, and a restricted column to Processor. This is the foundation of the work to remove ProcessorFamily.

To post a comment you must log in.
Revision history for this message
Stuart Bishop (stub) wrote :

Fine.

Setting a default value for Processor.restricted and making it NOT NULL is fine and may save some other work.

review: Approve (db)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2209-49-0.sql'
2--- database/schema/patch-2209-49-0.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-49-0.sql 2013-09-16 04:55:37 +0000
4@@ -0,0 +1,14 @@
5+-- Copyright 2013 Canonical Ltd. This software is licensed under the
6+-- GNU Affero General Public License version 3 (see the file LICENSE).
7+
8+SET client_min_messages=ERROR;
9+
10+ALTER TABLE processor ADD COLUMN restricted BOOLEAN;
11+ALTER TABLE distroarchseries
12+ ADD COLUMN processor INTEGER REFERENCES processor,
13+ ADD CONSTRAINT distroarchseries__processor__distroseries__key UNIQUE (processor, distroseries);
14+ALTER TABLE archivearch
15+ ADD COLUMN processor INTEGER REFERENCES processor,
16+ ADD CONSTRAINT archivearch__archive__processor__key UNIQUE (archive, processor);
17+
18+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 49, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: