Merge lp:~cjwatson/launchpad/db-package-cache-drop-changelog-fti into lp:launchpad/db-devel

Proposed by Colin Watson
Status: Merged
Merged at revision: 13451
Proposed branch: lp:~cjwatson/launchpad/db-package-cache-drop-changelog-fti
Merge into: lp:launchpad/db-devel
Diff against target: 17 lines (+13/-0)
1 file modified
database/schema/patch-2209-78-0.sql (+13/-0)
To merge this branch: bzr merge lp:~cjwatson/launchpad/db-package-cache-drop-changelog-fti
Reviewer Review Type Date Requested Status
William Grant code Approve
Review via email: mp+295610@code.launchpad.net

Commit message

Drop DistributionSourcePackageCache.changelog from fti.

Description of the change

Drop DistributionSourcePackageCache.changelog from fti.

https://code.launchpad.net/~cjwatson/launchpad/package-cache-drop-changelog-fti-test/+merge/295609 will need to be merged first, but only affects tests so it doesn't need to be on production.

To post a comment you must log in.
Revision history for this message
William Grant (wgrant) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'database/schema/patch-2209-78-0.sql'
2--- database/schema/patch-2209-78-0.sql 1970-01-01 00:00:00 +0000
3+++ database/schema/patch-2209-78-0.sql 2016-05-24 17:16:40 +0000
4@@ -0,0 +1,13 @@
5+-- Copyright 2016 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+DROP TRIGGER IF EXISTS tsvectorupdate ON distributionsourcepackagecache;
11+
12+CREATE TRIGGER tsvectorupdate
13+ BEFORE INSERT OR UPDATE ON distributionsourcepackagecache
14+ FOR EACH ROW
15+ EXECUTE PROCEDURE ts2.ftiupdate('name', 'a', 'binpkgnames', 'b', 'binpkgsummaries', 'c', 'binpkgdescriptions', 'd');
16+
17+INSERT INTO LaunchpadDatabaseRevision VALUES (2209, 78, 0);

Subscribers

People subscribed via source and target branches

to status/vote changes: