1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
-- Copyright 2009 Canonical Ltd. This software is licensed under the
-- GNU Affero General Public License version 3 (see the file LICENSE).
SET client_min_messages=ERROR;
-- Append the home page to the summary where both are set.
UPDATE Branch
SET summary = (summary || E'\n\n' || 'Home page: ' || home_page)
WHERE
summary IS NOT NULL
AND home_page IS NOT NULL;
-- Set the home page to be the summary if the summary is not set.
UPDATE Branch
SET summary = 'Home page: ' || home_page
WHERE
summary IS NULL
AND home_page IS NOT NULL;
-- Drop the column later as the horrible BranchWithSortKeys
-- view uses it. I'm hoping to kill this view shortly.
INSERT INTO LaunchpadDatabaseRevision VALUES (121, 28, 0);
|