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
=== added file 'database/schema/patch-2209-49-0.sql'
--- database/schema/patch-2209-49-0.sql 1970-01-01 00:00:00 +0000
+++ database/schema/patch-2209-49-0.sql 2013-09-16 04:55:37 +0000
@@ -0,0 +1,14 @@
1-- Copyright 2013 Canonical Ltd. This software is licensed under the
2-- GNU Affero General Public License version 3 (see the file LICENSE).
3
4SET client_min_messages=ERROR;
5
6ALTER TABLE processor ADD COLUMN restricted BOOLEAN;
7ALTER TABLE distroarchseries
8 ADD COLUMN processor INTEGER REFERENCES processor,
9 ADD CONSTRAINT distroarchseries__processor__distroseries__key UNIQUE (processor, distroseries);
10ALTER TABLE archivearch
11 ADD COLUMN processor INTEGER REFERENCES processor,
12 ADD CONSTRAINT archivearch__archive__processor__key UNIQUE (archive, processor);
13
14INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 49, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: