Merge lp:~wgrant/launchpad/bpb-arch_indep-db into lp:launchpad/db-devel

Proposed by William Grant
Status: Merged
Merged at revision: 12819
Proposed branch: lp:~wgrant/launchpad/bpb-arch_indep-db
Merge into: lp:launchpad/db-devel
Diff against target: 12 lines (+8/-0)
1 file modified
database/schema/patch-2209-59-0.sql (+8/-0)
To merge this branch: bzr merge lp:~wgrant/launchpad/bpb-arch_indep-db
Reviewer Review Type Date Requested Status
William Grant db Approve
Review via email: mp+240389@code.launchpad.net

Commit message

Add BinaryPackageBuild.arch_indep DB schema.

Description of the change

With vivid switching nominatedarchindep from i386 to amd64, the nominatedarchindep architecture needs to sometimes build arch-indep binaries, and sometimes not. This has to be judged at createMissingBuilds time, which means we need a way to persist it.

The new BinaryPackageBuild.arch_indep boolean column will be backfilled based on nominatedarchindep then made NOT NULL. Build dispatching will use the column rather than checking nominatedarchindep directly.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
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-59-0.sql'
2--- database/schema/patch-2209-59-0.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-59-0.sql 2014-11-03 03:57:02 +0000
4@@ -0,0 +1,8 @@
5+-- Copyright 2014 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 binarypackagebuild ADD COLUMN arch_indep boolean;
11+
12+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 59, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: