7675.911.1
by Danilo Segan
Drop database columns and anything mentioning variants in translations. |
1 |
-- Copyright 2010 Canonical Ltd. This software is licensed under the
|
2 |
-- GNU Affero General Public License version 3 (see the file LICENSE).
|
|
3 |
SET client_min_messages=ERROR; |
|
4 |
||
5 |
-- Create new indexes to replace those using 'variant' column on either
|
|
6 |
-- TranslationMessage or POFile tables. Done as a separate patch so it
|
|
7 |
-- can be run on production DBs separately from actual DROP COLUMNs.
|
|
8 |
||
9 |
CREATE UNIQUE INDEX pofile__potemplate__language__idx |
|
10 |
ON pofile USING btree (potemplate, language); |
|
11 |
||
12 |
CREATE UNIQUE INDEX tm__potmsgset__language__shared__current__key ON translationmessage USING btree (potmsgset, language) WHERE (((is_current IS TRUE) AND (potemplate IS NULL))); |
|
13 |
||
14 |
CREATE UNIQUE INDEX tm__potmsgset__language__shared__imported__key ON translationmessage USING btree (potmsgset, language) WHERE (((is_imported IS TRUE) AND (potemplate IS NULL))); |
|
15 |
||
16 |
CREATE INDEX tm__potmsgset__language__not_used__idx ON translationmessage USING btree (potmsgset, language) WHERE (NOT ((is_current IS TRUE) AND (is_imported IS TRUE))); |
|
17 |
||
18 |
CREATE UNIQUE INDEX tm__potmsgset__potemplate__language__diverged__current__idx ON translationmessage USING btree (potmsgset, potemplate, language) WHERE (((is_current IS TRUE) AND (potemplate IS NOT NULL))); |
|
19 |
||
20 |
CREATE UNIQUE INDEX tm__potmsgset__potemplate__language__diverged__imported__idx ON translationmessage USING btree (potmsgset, potemplate, language) WHERE (((is_imported IS TRUE) AND (potemplate IS NOT NULL))); |
|
21 |
||
22 |
CREATE INDEX translationmessage__language__submitter__idx ON translationmessage USING btree (language, submitter); |
|
23 |
||
7675.911.5
by Danilo Segan
Use patch numbers as assigned by Stuart. |
24 |
INSERT INTO LaunchpadDatabaseRevision VALUES (2208, 28, 1); |