Merge lp:~ursinha/launchpad/db-patch-bug-474462 into lp:launchpad/db-devel

Proposed by Ursula Junque
Status: Merged
Approved by: Jonathan Lange
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~ursinha/launchpad/db-patch-bug-474462
Merge into: lp:launchpad/db-devel
Diff against target: 24 lines (+9/-0)
2 files modified
database/schema/comments.sql (+1/-0)
database/schema/patch-2207-10-0.sql (+8/-0)
To merge this branch: bzr merge lp:~ursinha/launchpad/db-patch-bug-474462
Reviewer Review Type Date Requested Status
Jonathan Lange (community) Approve
Stuart Bishop (community) db Approve
Review via email: mp+14435@code.launchpad.net

Commit message

db patch that adds translation_focus field to products as they exist in distributions.

To post a comment you must log in.
Revision history for this message
Ursula Junque (ursinha) wrote :

This is a database patch to allow the fix of bug 422056.

It adds a new column to Product table, translation_focus, and adds the constraint that defines that Product.translation_focus should reference a ProductSeries.

Revision history for this message
Данило Шеган (danilo) wrote :

Just a note: this is not in focus for our 'bridging the gap' theme, but is a nice, easy way for Ursula to experience some other bits of Launchpad development, like writing a DB patch.

Revision history for this message
Данило Шеган (danilo) wrote :

It also mirrors the translation_focus field we already have on Distribution.

Revision history for this message
Stuart Bishop (stub) wrote :

Looks good and matches the existing Distribution.translation_focus.

Patch number is patch-2207-10-0.sql

review: Approve (db)
Revision history for this message
Jonathan Lange (jml) wrote :

Thanks, this looks good to me. I'm glad to see increased consistency between products and distros.

FWIW, it would have been easier for me to review this if more context were included in the cover letter.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'database/schema/comments.sql'
2--- database/schema/comments.sql 2009-11-10 07:23:32 +0000
3+++ database/schema/comments.sql 2009-11-18 04:11:11 +0000
4@@ -581,6 +581,7 @@
5 COMMENT ON COLUMN Product.bug_supervisor IS 'Person who is responsible for managing bugs on this product.';
6 COMMENT ON COLUMN Product.security_contact IS 'The person or team who handles security-related issues in the product.';
7 COMMENT ON COLUMN Product.driver IS 'This is a driver for the overall product. This driver will be able to approve nominations of bugs and specs to any series in the product, including backporting to old stable series. You want the smallest group of "overall drivers" here, because you can add specific drivers to each series individually.';
8+COMMENT ON COLUMN Product.translation_focus IS 'The ProductSeries that should get the translation effort focus.';
9 --COMMENT ON COLUMN Product.bugtracker IS 'The external bug tracker that is used to track bugs primarily for this product, if it''s different from the project bug tracker.';
10 COMMENT ON COLUMN Product.development_focus IS 'The product series that is the current focus of development.';
11 COMMENT ON COLUMN Product.homepage_content IS 'A home page for this product in the Launchpad.';
12
13=== added file 'database/schema/patch-2207-10-0.sql'
14--- database/schema/patch-2207-10-0.sql 1970-01-01 00:00:00 +0000
15+++ database/schema/patch-2207-10-0.sql 2009-11-18 04:11:11 +0000
16@@ -0,0 +1,8 @@
17+SET client_min_messages=ERROR;
18+
19+ALTER TABLE Product
20+ ADD COLUMN translation_focus int,
21+ ADD CONSTRAINT product__translation_focus__fk
22+ FOREIGN KEY (translation_focus) REFERENCES productseries(id);
23+
24+INSERT INTO LaunchpadDatabaseRevision VALUES (2207, 10, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: