~abrody/+junk/launchpad-dbpatches

2 by Stuart Bishop
Notes and formatting
1
Database Patch Numbers
2
======================
3
4
The following database patch numbers have been allocated for use. These
5
patches may not have been deployed or landed yet.
6
7
Comment should be meaningful enough for the DBA to determine if a .sql
8
script claiming to be a particular patch really is a particular patch.
9
41 by Jeroen Vermeulen
Allocate patch for bug 849683.
10
Feel free to reuse numbers marked as moved. Patches normally only get
2 by Stuart Bishop
Notes and formatting
11
renumbered if they are to be applied live.
12
13
14
Notes about patches
15
-------------------
16
17
 - Do not include BEGIN or COMMIT. They might be useful when
18
   you are testing, but don't let them land with these statements.
19
20
 - COMMENTs go in comments.sql.
21
22
 - You need COMMENTs for all new tables and columns. Fix COMMENTs
23
   when you are changing the meaning of a column or table.
24
25
 - Don't use TRUNCATE. It breaks replication.
26
27
 - Don't use DROP TABLE. It breaks replication. Instead, remove
28
   any FOREIGN KEY constraints and do `ALTER TABLE Foo SET SCHEMA todrop;`.
29
   The table will be removed from replication and dropped later by our
30
   update scripts.
31
32
 - Some database patches may be applied live. This needs to be determined
41 by Jeroen Vermeulen
Allocate patch for bug 849683.
33
   on a case-by-case basis by the DBA. If your patch needs to be applied
2 by Stuart Bishop
Notes and formatting
34
   live, things it cannot do include:
35
36
    - ALTER TABLE of any kind.
37
38
    - Creating a new table that REFERENCES a busy table (such as Person).
39
40
41
42
Notes about patch numbers
43
-------------------------
44
45
 - Unapplied patches are applied in sequence. Patches can only depend
48 by Guilherme Salgado
Claim 2209-06-1 for new work-item tables
46
   on earlier numbered patches.
2 by Stuart Bishop
Notes and formatting
47
48
 - We refer to the three fields in the patch number as major, minor
49
   and patch.
50
51
   - 'major' changes when we create a new database baseline in the tree.
52
     The baseline is launchpad-$major-00-0.sql, and is regenerated by the
53
     DBA from a production database dump to remove any skew between
54
     production and development. Any db patches not yet deployed need
55
     to be renumbered to match the new baseline, and deployed patches
56
     removed or archived.
57
58
   - 'minor' and 'patch' are unique to your database patch.
59
12 by Danilo Segan
Add a note about minor version number selection.
60
     - Minor number can be reused from any of the previously allocated
61
       patch numbers (as long as the dependency graph is satisfied).
62
2 by Stuart Bishop
Notes and formatting
63
     - A 'patch' or 0 means the patch can only be deployed as part of a
64
       full update (database and code). On startup, our systems assert
65
       that the set of -0 database patches in the local source tree and
66
       the set of -0 patches that have been applied to the database are
67
       the same. This is a safety net to ensure systems do not attempt
68
       to run against an unexpected database schema.
69
12 by Danilo Segan
Add a note about minor version number selection.
70
     - /!\ UPDATE: With fastdowntime deploys, we will rarely if ever
9 by Stuart Bishop
Speed up bugsummary rollup, Bug #810104
71
       use -0 patches.
72
2 by Stuart Bishop
Notes and formatting
73
     - A non-zero 'patch' means the database patch can be applied at
74
       any time without affecting any production code. The runtime
75
       checks used for -0 patches are not applied. It is your
76
       responsibility to ensure your patch does not break deployed code
77
       or trunk.
78
79
     - A non-zero 'patch' *may* be deployable live by the DBA. They need
80
       to be analyzed on a case by case basis, potentially causing them
81
       to be split into a number of smaller patches.
82
83
84
Allocated Database Patch Numbers
85
--------------------------------
86
3 by Stuart Bishop
Drop translationmessage index
87
========= ============= =====================================================
88
 Patch #  Who Allocated Comment
89
========= ============= =====================================================
40 by Stuart Bishop
New baseline patch rollover
90
2209-00-0 stub          Dummy patch sacrified to patch application machinery
41 by Jeroen Vermeulen
Allocate patch for bug 849683.
91
2209-00-1 jtv           NOT NULL on [BS]PPH.{binary,source}packagename.
42 by Francesco Banconi
Claimed a new patch number.
92
2209-00-2 jelmer        ???
93
2209-00-3 frankban      Add milestonetag table.
43 by Graham Binns
Allocated patch 2209-0-4.
94
2209-00-4 gmb           Add constraints to Person and EmailAddress.
50 by Stuart Bishop
PG 9.1 compatibility fixes
95
2209-00-5 stub          PG 9.1 compatibility fixes
56 by William Grant
Let's do Packaging.productseries as well.
96
2209-00-6 wgrant        Index ProductReleaseFile.productrelease and Packaging.productseries
59 by Stuart Bishop
2209-00-7 stub Explicit statistics sample size on TeamMembership
97
2209-00-7 stub          Explicit statistics sample size on TeamMembership
60 by William Grant
Include DEBUG in archive__distribution__purpose__key
98
2209-00-8 wgrant        Include DEBUG in archive__distribution__purpose__key
61 by William Grant
2209-00-9 wgrant scriptactivity and bugbranch indices
99
2209-00-9 wgrant        scriptactivity and bugbranch indices
44 by William Grant
Patches for EmailAddress.account nuking.
100
2209-01-0 wgrant        Make ValidPerson(OrTeam)Cache use EmailAddress.person
101
2209-01-1 wgrant        Drop EmailAddress.account
45 by William Grant
SPPH.sponsor for Laney.
102
2209-02-0 Laney         SPPH.sponsor
46 by Steve Kowalik
Claim 04 for Ursinha.
103
2209-04-0 Ursinha       Specification.{date_last_changed,last_changed_by}
47 by Steve Kowalik
New number for me
104
2209-05-1 StevenK       New index on BPPH.
48 by Guilherme Salgado
Claim 2209-06-1 for new work-item tables
105
2209-06-1 salgado       Add SpecificationWorkItem and SpecificationWorkItemChange tables
49 by William Grant
2209-06-1 is mine for dropping BugTask.fti
106
2209-07-0 wgrant        Drop BugTask.fti
51 by William Grant
2209-07-1 is mine to remove bug heat aging.
107
2209-07-1 wgrant        Fix calculate_bug_heat to not age.
52 by Ian Booth
New patch for wallyworld
108
2209-08-1 wallyworld    Drop private_bugs_need_contact constraint on product table.
53 by Steve Kowalik
Allocate myself a number
109
2209-09-0 StevenK       Destroy Entitlement
54 by Steve Kowalik
Claim -10 for myself
110
2209-10-0 StevenK       Wide-scale index cleanup.
58 by William Grant
Needs to be split into three.
111
2209-11-0 wgrant        Drop old access policy person and branch foreign keys.
112
2209-11-1 wgrant        Remodel access policy schema
62 by William Grant
Repurpose 11-2 to fix accesspolicy dropping breakage.
113
2209-11-2 wgrant        Drop foreign keys between the old schema so it can drop. Oops.
68 by William Grant
Matching reality for the 2209-11-* series is good.
114
2209-11-3 wgrant        Triggers to mirror bug legacy access to sharing.
115
2209-11-4 wgrant        Rework triggers from 2209-11-3 to use information_type.
116
2209-11-5 wgrant        Add person and branch foreign keys to new access policy schema.
65 by Steve Kowalik
Repurpose -12, because I can, and fix formating for -1{3,4}.
117
2209-12-0 StevenK       Add information visibility policy to bug/branch.
70 by Steve Kowalik
Shift patch numbers around.
118
2209-12-1 StevenK       Index for bug.information_type.
119
2209-12-2 StevenK       Make bug.information_type NOT NULL.
72 by Steve Kowalik
Claim -12-3.
120
2209-12-3 StevenK       Fiddle bugsummary triggers to use information_type.
94 by Steve Kowalik
Fix landed patch numbers to reflect reality.
121
2209-12-4 StevenK       Index for branch.information_type.
122
2209-12-5 StevenK       Make branch.information_type NOT NULL.
65 by Steve Kowalik
Repurpose -12, because I can, and fix formating for -1{3,4}.
123
2209-13-0 lifeless      New emailjob table.
124
2209-14-0 lifeless      Drop bugjob.
69 by Steve Kowalik
Claim two patch numbers.
125
2209-15-0 StevenK       Add SPPH.packageupload.
66 by Curtis Hovey
Add productjob.
126
2209-15-1 sinzui        Add productjob
67 by Stuart Bishop
Bug #920926 and misc cleanup
127
2209-15-2 stub          Bug #920926 and misc cleanup
94 by Steve Kowalik
Fix landed patch numbers to reflect reality.
128
2209-15-3 StevenK       Index for SPPH.packageupload
71 by William Grant
2209-16-0 wgrant BugTaskFlat
129
2209-16-0 wgrant        BugTaskFlat
73 by William Grant
2209-16-1 wgrant More BugTaskFlat indices
130
2209-16-1 wgrant        More BugTaskFlat indices
75 by William Grant
2209-16-2 wgrant SourcePackagePublishingHistory index for bug component search
131
2209-16-2 wgrant        SourcePackagePublishingHistory index for bug component search
78 by William Grant
2209-16-3 wgrant date_closed and latest_patch_uploaded onto BugTaskFlat
132
2209-16-3 wgrant        date_closed and latest_patch_uploaded onto BugTaskFlat
81 by William Grant
2209-16-4 wgrant date_closed and latest_patch_uploaded indices for BugTaskFlat
133
2209-16-4 wgrant        date_closed and latest_patch_uploaded indices for BugTaskFlat
82 by William Grant
2209-16-5 wgrant Drop obsolete Bug and BugTask columns
134
2209-16-5 wgrant        Drop obsolete Bug and BugTask columns
97 by Steve Kowalik
New DB patch needs to come after BTF.
135
2209-16-6 StevenK       Transition Branch to new access model, dropping the old one.
102 by William Grant
2209-16-7 wgrant Drop the bug legacy access triggers.
136
2209-16-7 wgrant        Drop the bug legacy access triggers.
116 by Steve Kowalik
Claim 16-8.
137
2209-16-8 StevenK       Delete obsolete branch function.
74 by Ian Booth
New patch for sharing jobs
138
2209-17-0 wallyworld    Sharing jobs
76.1.1 by Jeroen Vermeulen
2209-17-1: Drop POFileTranslator.latest_message.
139
2209-17-1 jtv           Drop POFileTranslator.latest_message.
79 by Robert Collins
2209-18-0 cjwatson Add packageset.score.
140
2209-18-0 cjwatson      Add packageset.score.
84 by William Grant
2209-18-1 cjwatson Add ArchivePermission.pocket.
141
2209-18-1 cjwatson      Add ArchivePermission.pocket.
86 by Steve Kowalik
Claim two patches for my very own.
142
2209-18-2 StevenK       Builder.description DROP NOT NULL.
143
2209-18-3 StevenK       Drop Builder.description.
94 by Steve Kowalik
Fix landed patch numbers to reflect reality.
144
2209-18-4 cjwatson      Rename packageset.score to relative_build_score.
83 by William Grant
2209-19-0 wgrant BugSummary v2
145
2209-19-0 wgrant        BugSummary v2
101 by William Grant
More BugSummary v2 patches.
146
2209-19-1 wgrant        BugSummary v2 -- new search indices
147
2209-19-2 wgrant        BugSummary v2 -- new unique index
148
2209-19-3 wgrant        BugSummary v2 -- set access_policy, drop old columns and indices
85 by Stuart Bishop
2209-20-0 for danilo
149
2209-20-0 stub          Drop SpecificationFeedback foreign keys (person merge)
100 by Stuart Bishop
2209-20-1 for dropping specificationfeedback
150
2209-20-1 danilo        Drop SpecificationFeedback table
87 by Stuart Bishop
GIN fti indexes
151
2209-21-0 stub          Create GIN index on BugTaskFlat.fti
88 by Stuart Bishop
More GIN indexes
152
2209-21-1 stub          Drop GiST index on BugTaskFlat.fti
153
2209-21-2 stub          Create remaining GIN indexes to replace GiST indexes.
154
2209-21-3 stub          Drop remaining GiST indexes.
90 by Stuart Bishop
update_disk_utilization fix for Bug #1007333
155
2209-21-4 stub          update_disk_utilization fix for Bug #1007333
93 by Stuart Bishop
New patchnum for jml
156
2209-22-0 jml           Archive.suppress_subscription_notifications lp:#1006295
157
2209-22-1 jml           New distribution col - who can create private PPAs
96 by William Grant
2209-23-0 wgrant DistributionSourcePackageCache indices
158
2209-23-0 wgrant        DistributionSourcePackageCache indices
118 by William Grant
2209-23-1 wgrant BinaryPackageName and SourcePackageName indices
159
2209-23-1 wgrant        BinaryPackageName and SourcePackageName indices
119 by William Grant
2209-23-2 wgrant AccessArtifactGrant and AccessPolicyGrant indices
160
2209-23-2 wgrant        AccessArtifactGrant and AccessPolicyGrant indices
122 by William Grant
2209-23-3 wgrant BinaryPackagePublishingHistory index
161
2209-23-3 wgrant        BinaryPackagePublishingHistory index
126 by William Grant
2209-23-4 wgrant Specification(milestone) index
162
2209-23-4 wgrant        Specification(milestone) index
128 by William Grant
2209-23-5 wgrant BuildFarmJob(status, id) index
163
2209-23-5 wgrant        BuildFarmJob(status, id) index
98 by Abel Deuring
Fix stored procedures ftq() and _ftq()
164
2209-24-1 adeuring      Fix stored procedures ftq() and _ftq()
105 by Abel Deuring
another fix of ftq() and _ftq()
165
2209-24-2 stub          Drop obsolete and shadowed fti helpers in the ts2 schema
166
2209-24-3 adeuring      another fix of ftq() and _ftq()
99 by Rick Harding
Claim 25-1 for Laney #1016776 -proposed changes
167
2209-25-1 Laney         Update -propsed to not be automatic lp:#1016776
103 by William Grant
Take 2209-26-* for BVP obliteration.
168
2209-26-0 wgrant        Product columns to replace BranchVisibilityPolicy
169
2209-26-1 wgrant        Drop BranchVisibilityPolicy
108 by Steve Kowalik
Take 26-3, and update descriptions.
170
2209-26-2 StevenK       Drop BugSubscriptionFilter{Status,Importance}.id
171
2209-26-3 StevenK       BugSubscriptionFilterInformationType
113 by Steve Kowalik
Claim 26-4 for my very own.
172
2209-26-4 StevenK       Drop {Product,Distribution}.security_contact
127 by Steve Kowalik
Claim 26-5 for dropping private_bugs.
173
2209-26-5 StevenK       Drop Product.private_bugs
104 by Rick Harding
resevere for cjwatson implementation of per-pocket queue admin permissions
174
2209-27-1 cjwatson      support implementation of per-pocket queue admin permissions
110 by William Grant
2209-27-2 cjwatson ProcessAcceptedBugsJob
175
2209-27-2 cjwatson      ProcessAcceptedBugsJob
121 by Steve Kowalik
Claim 27-3.
176
2209-27-3 StevenK       New index on BuildFarmJob.
107 by Aaron Bentley
Claim some 28-series patches.
177
2209-28-1 abentley      Add information_type to Specification
178
2209-28-2 abentley      Add index on Specification.information_type
109 by Aaron Bentley
28-3: Set NOT NULL on Specification.information_type
179
2209-28-3 abentley      Set NOT NULL on Specification.information_type
114 by Abel Deuring
28-4: new column AccessArtifact.specification
180
2209-28-4 adeuring      New column AccessArtifact.specification
115 by Abel Deuring
28-5: Index for AccessArtifact.specification
181
2209-28-5 adeuring      Index for AccessArtifact.specification
143 by Steve Kowalik
Claim 28-6 for Specification.access_{policy,grants}
182
2209-28-6 StevenK       Create Specification.access_{policy,grants}
111 by Ian Booth
New patch number
183
2209-29-0 wallyworld    Update functions to account for new embargoed information type
112 by Ian Booth
New patch number for altering accesspolicy table
184
2209-30-1 wallyworld    Alter AccessPolicy table to add person column and associated contraints and index
125 by Deryck Hodge
Reserve 2209-35-1, 2209-31-2, and 2209-31-3 for continued
185
2209-31-1 deryck        Add specification_sharing_policy to Product.
129 by Deryck Hodge
Update comment for patch 2209-31-2 to be accurate.
186
2209-31-2 deryck        Set default for Product.specification_sharing_policy.
125 by Deryck Hodge
Reserve 2209-35-1, 2209-31-2, and 2209-31-3 for continued
187
2209-31-3 deryck        Make Product.specification_sharing_policy NOT NULL.
120 by William Grant
2209-32-0 wgrant Fix bug_summary_dec typo to handle access policies correctly (bug #1046713)
188
2209-32-0 wgrant        Fix bug_summary_dec typo to handle access policies correctly (bug #1046713)
123 by Aaron Bentley
Claim 2209-33-1 for dropping Specification.private.
189
2209-33-1 abentley      Drop (unused) Specification.private
124 by j.c.sackett
Claim 2209-34-1 for dropping Product.date_next_suggest_packaging
190
2209-34-1 jcsackett     Drop (now unused) Product.date_next_suggest_packaging
125 by Deryck Hodge
Reserve 2209-35-1, 2209-31-2, and 2209-31-3 for continued
191
2209-35-1 deryck        Add information_type to Product.
136 by Deryck Hodge
Reserve a couple numbers to finish out db work for Product.information_type.
192
2209-35-2 deryck        Add index for Product.information_type.
193
2209-35-3 deryck        Make Product.information_type NOT NULL.
130 by William Grant
2209-36-0 cjwatson Flag to redirect Ubuntu release uploads to another pocket
194
2209-36-0 cjwatson      Flag to redirect Ubuntu release uploads to another pocket
141 by William Grant
2209-36-1 cjwatson BinaryPackagePublishingHistory.phased_update_percentage
195
2209-36-1 cjwatson      BinaryPackagePublishingHistory.phased_update_percentage
131 by Steve Kowalik
Claim 37-0 for my very own.
196
2209-37-0 StevenK       Drop potmsgset.potemplate.
135 by Ian Booth
Additional LPSPRC indices
197
2209-38-0 wallyworld    Add new LatestPersonSourcePackageReleaseCache table.
198
2209-38-1 wallyworld    Add creator and maintainer person FK's to LatestPersonSourcePackageReleaseCache table
199
2209-38-2 wallyworld    Add (archive, distroseries, sourcepackagename) index to LPSPRC table.
134 by William Grant
2209-38-3 wgrant LatestPersonSourcePackageReleaseCache indices to satisfy page queries
200
2209-38-3 wgrant        LatestPersonSourcePackageReleaseCache indices to satisfy page queries
133 by Stuart Bishop
2209-39-0 - Convert contrib modules to extensions
201
2209-39-0 stub          Convert contrib to extensions
139 by Stuart Bishop
Drop LibraryFileAlias.last_accessed
202
2209-39-1 stub          Drop LibraryFileAlias.last_accessed
137 by Steve Kowalik
Claim 40-{0,1}.
203
2209-40-0 StevenK       New searchable_names column on PackageUpload
138 by Steve Kowalik
More 40 series for PackageUpload
204
2209-40-1 StevenK       New searchable_versions column on PackageUpload
142 by Steve Kowalik
Correct history
205
2209-40-2 StevenK       Indices for PackageUpload.searchable_{name,version}s
206
2209-40-3 StevenK       Set PackageUpload.searchable_{name,version}s NOT NULL.
140 by William Grant
2209-41-* are for BuildFarmJob flattening
207
2209-41-0 wgrant        BuildFarmJob flattening -- new columns
144 by William Grant
2209-41-1 wgrant BuildFarmJob flattening -- LFA indices on new columns
208
2209-41-1 wgrant        BuildFarmJob flattening -- LFA indices on new columns
145 by William Grant
2209-41-2 wgrant BuildFarmJob flattening -- fix TTB defaults
209
2209-41-2 wgrant        BuildFarmJob flattening -- fix TTB defaults
146 by William Grant
2209-41-3 wgrant BuildFarmJob flattening -- search indices
210
2209-41-3 wgrant        BuildFarmJob flattening -- search indices
147 by William Grant
Grab 2209-41-4 and 2209-41-5 for BFJ more flattening indices and cleanup.
211
2209-41-4 wgrant        BuildFarmJob flattening -- more search indices
212
2209-41-5 wgrant        BuildFarmJob flattening -- cleanup
148 by William Grant
2209-42-0 wgrant Fix LaunchpadDatabaseRevision.end_time to default to clock_timestamp
213
2209-42-0 wgrant        Fix LaunchpadDatabaseRevision.end_time to default to clock_timestamp
149 by Steve Kowalik
Add notes for patch 43
214
2209-43-0 StevenK       Trigram indices for Branch.{,unique_}name.
152 by Steve Kowalik
Correct the 44 series to reflect reality.
215
2209-44-0 StevenK       New columns, PreviewDiff.{branch_merge_proposal,date_created}.
216
2209-44-1 StevenK       Index for PreviewDiff.{branch_merge_proposal,date_created}.
153 by Steve Kowalik
44-2 was blown apart into two patches.
217
2209-44-2 StevenK       DROP COLUMN BranchMergeProposal.merge_diff.
218
2209-44-3 StevenK       PreviewDiff.{branch_merge_proposal,date_created} NOT NULL.
154 by Steve Kowalik
Claim 44-4.
219
2209-44-4 StevenK       Indices for {Incremental,Preview}Diff.diff.
151 by William Grant
2209-45-0 wgrant Archive.publish_debug_symbols
220
2209-45-0 wgrant        Archive.publish_debug_symbols
221
2209-45-1 wgrant        Archive.publish_debug_symbols NOT NULL
155 by Steve Kowalik
Add 46, which is deployed, and claim 47.
222
2209-46-0 StevenK       Archive.permit_obsolete_series_uploads
223
2209-47-0 StevenK       Job.json_data
157 by Steve Kowalik
Claim 47-1 for my very own
224
2209-47-1 StevenK       PackageDiff.requester DROP NOT NULL
156 by Steve Kowalik
Assign 48-0.
225
2209-48-0 cjwatson      Distribution.development_series_alias
158 by Steve Kowalik
Claim the 49 series.
226
2209-49-0 StevenK       ArchiveArch.processor, DistroArchSeries.processor, Processor.restricted
227
2209-49-1 StevenK       Columns in 49-0 NOT NULL
228
2209-49-2 StevenK       DROP TABLE ProcessorFamily
159 by Colin Watson
2209-50-0 cjwatson Builder.version
229
2209-50-0 cjwatson      Builder.version
160 by William Grant
Take a couple of patches for the destruction of BuildFarmJobOld.
230
2209-51-0 wgrant        BuildFarmJobOld destruction -- new BuildQueue columns
161 by William Grant
Update BFJO destruction patch numbers.
231
2209-51-1 wgrant        BuildFarmJobOld destruction -- drop BQ/BPJ/SPRBJ->Job FKs
232
2209-51-2 wgrant        BuildFarmJobOld destruction -- remove old columns and tables
162 by William Grant
2209-52-0 wgrant Introduce BuilderProcessor
233
2209-52-0 wgrant        Introduce BuilderProcessor
234
2209-52-1 wgrant        Drop Builder.processor
163 by William Grant
2209-53-0 wgrant Index SPPH (datecreated, id) for Distribution:+ppas
235
2209-53-0 wgrant        Index SPPH (datecreated, id) for Distribution:+ppas
168 by William Grant
Fix transposed 2209-53-{1,2}.
236
2209-53-1 wgrant        Replay of new 2209-00-5 for PostgreSQL 9.3 support in activity()
237
2209-53-2 wgrant        Add Builder.satellite
167 by William Grant
+2209-53-3 wgrant SPPH.packageupload and BPPH.supersededby FKs for architecture cleaning performance
238
2209-53-3 wgrant        SPPH.packageupload and BPPH.supersededby FKs for architecture cleaning performance
169 by William Grant
+2209-53-4 wgrant Drop alllocks and exclusivelocks views; their use of procpid crashes pg_upgrade to 9.3
239
2209-53-4 wgrant        Drop alllocks and exclusivelocks views; their use of procpid crashes pg_upgrade to 9.3
173 by William Grant
+2209-53-5 wgrant xPPH(archive, Xpackagename, status) indices for guessPublishedSourcePackageName.
240
2209-53-5 wgrant        xPPH(archive, Xpackagename, status) indices for guessPublishedSourcePackageName.
174 by William Grant
+2209-53-6 wgrant Index BuildQueue(status, virtualized, processor, lastscore DESC, id) for quick candidate queries
241
2209-53-6 wgrant        Index BuildQueue(status, virtualized, processor, lastscore DESC, id) for quick candidate queries
175 by William Grant
+2209-53-7 wgrant Distribution.official_soyuz, enable_ppas, enable_mirrors
242
2209-53-7 wgrant        Distribution.official_soyuz, enable_ppas, enable_mirrors
177 by Colin Watson
adjust 2209-53-8 description
243
2209-53-8 cjwatson      Index xPPH(archive, status) WHERE scheduleddeletiondate IS NULL
192 by Colin Watson
BPPH(archive, datecreated, id) rather than BPPH(datecreated, id)
244
2209-53-9 cjwatson      Index BPPH(archive, datecreated, id) for Archive.getAllPublishedBinaries
165 by Celso Providelo
2209-54-0 cprov Add CodeReviewInlineComment[,Draft]
245
2209-54-0 cprov         Add CodeReviewInlineComment[,Draft]
170 by Celso Providelo
2209-55-0 cprov Update valid_cve() to cope with CVE format changes
246
2209-55-0 cprov         Update valid_cve() to cope with CVE format changes
171 by Colin Watson
2209-56-0 cjwatson Add LiveFS, LiveFSBuild, and LiveFSFile
247
2209-56-0 cjwatson      Add LiveFS, LiveFSBuild, and LiveFSFile
209 by Colin Watson
2209-56-1 cjwatson Add NULLS LAST to LiveFS.*builds index
248
2209-56-1 cjwatson      Add NULLS LAST to LiveFS.*builds index
210 by Colin Watson
2209-56-2 cjwatson LiveFSBuild.version
249
2209-56-2 cjwatson      LiveFSBuild.version
252 by Colin Watson
2209-56-3 cjwatson LiveFS.relative_build_score
250
2209-56-3 cjwatson      LiveFS.relative_build_score
267 by Colin Watson
2209-56-4 wgrant Index LiveFSFile(libraryfile)
251
2209-56-4 wgrant        Index LiveFSFile(libraryfile)
172 by William Grant
+2209-57-0 wgrant Virtual builder reset protocol 2.0
252
2209-57-0 wgrant        Virtual builder reset protocol 2.0
179 by Stuart Bishop
64bit LFC.id, step 2
253
2209-58-0 stub          64bit LFC.id - new LFC._id column + sync trigger
181 by Stuart Bishop
Indexes need to be separate patches
254
2209-58-1 stub          64bit LFC.id - Unique LFC._id
255
2209-58-2 stub          64bit LFC.id - new LFA._content column + sync trigger
256
2209-58-3 stub          64bit LFC.id - Index on LFA._content
257
2209-58-4 stub          64bit LFC.id - Finalization
182 by William Grant
2209-59-0 wgrant BinaryPackageBuild.arch_indep
258
2209-59-0 wgrant        BinaryPackageBuild.arch_indep
183 by William Grant
2209-59-1 -> 2209-59-2. -1 is now a population patch for systems that can do it offline.
259
2209-59-1 wgrant        BinaryPackageBuild.arch_indep population (done by garbo on prod)
260
2209-59-2 wgrant        BinaryPackageBuild.arch_indep NOT NULL
184 by Colin Watson
2209-60-0 cjwatson Sprint.is_physical
261
2209-60-0 cjwatson      Sprint.is_physical
185 by Colin Watson
2209-61-0 cjwatson GitRepository, GitRef
262
2209-61-0 cjwatson      GitRepository, GitRef
187 by Colin Watson
2209-61-1 cjwatson Drop GitRepository.target_implies_owner constraint
263
2209-61-1 cjwatson      Drop GitRepository.target_implies_owner constraint
190 by Colin Watson
2209-61-2 cjwatson GitRepository.description, flesh out GitRef, GitJob
264
2209-61-2 cjwatson      GitRepository.description, flesh out GitRef, GitJob
194 by Kit Randel
2209-61-3 GitRef.reviewer no longer required.
265
2209-61-3 blr           GitRepository.reviewer
195 by Colin Watson
2209-61-4 cjwatson GitSubscription
266
2209-61-4 cjwatson      GitSubscription
196 by Colin Watson
2209-61-5 cjwatson Add Git columns to BranchMergeProposal
267
2209-61-5 cjwatson      Add Git columns to BranchMergeProposal
199 by Colin Watson
2209-61-6 cjwatson GitJob.repository DROP NOT NULL
268
2209-61-6 cjwatson      GitJob.repository DROP NOT NULL
201 by Colin Watson
2209-61-7 cjwatson GitRepository.default_branch
269
2209-61-7 cjwatson      GitRepository.default_branch
203 by William Grant
+2209-61-8 wgrant GitRepository indices
270
2209-61-8 wgrant        GitRepository indices
244 by Colin Watson
2209-61-9 cjwatson GitSubscription.paths
271
2209-61-9 cjwatson      GitSubscription.paths
186 by William Grant
+2209-62-0 wgrant BuildQueue(status, lastscore DESC, id) for _findBuildCandidate
272
2209-62-0 wgrant        BuildQueue(status, lastscore DESC, id) for _findBuildCandidate
188 by William Grant
+2209-62-1 wgrant Translation search and suggestion denormalisation
273
2209-62-1 wgrant        Translation search and suggestion denormalisation
189 by Stuart Bishop
Updated database report schema
274
2209-63-0 stub          Database stat monitoring, dbr schema.
197 by William Grant
+2209-64-0 wgrant Processor.{supports_{non,}virtualized,build_by_default}
275
2209-64-0 wgrant        Processor.{supports_{non,}virtualized,build_by_default}
200 by William Grant
More ArchiveArch.
276
2209-64-1 wgrant        Backfill implicit ArchiveArch rows
277
2209-64-2 wgrant        Drop DistroArchSeries.supports_virtualized
198 by Kit Randel
2209-65-0 blr Product.vcs_default
278
2209-65-0 blr           Product.vcs_default
202 by William Grant
+2209-66-0 wgrant Webhook model basics
279
2209-66-0 wgrant        Webhook model basics
212 by Colin Watson
2209-66-1 cjwatson Webhook.branch
280
2209-66-1 cjwatson      Webhook.branch
204 by William Grant
+2209-67-0 wgrant Drop a dozen unused tables
281
2209-67-0 wgrant        Drop a dozen unused tables
205 by William Grant
+2209-67-1 wgrant Add Product.access_policies and index AccessPolicyGrantFlat(grantee, policy)
282
2209-67-1 wgrant        Add Product.access_policies and index AccessPolicyGrantFlat(grantee, policy)
206 by William Grant
+2209-67-2 wgrant Backfill Product.access_policies
283
2209-67-2 wgrant        Backfill Product.access_policies
238 by William Grant
2209-67-3 wgrant Index latest Questions, Specifications and Products
284
2209-67-3 wgrant        Index latest Questions, Specifications and Products
207 by Colin Watson
2209-68-0 cjwatson PersonSettings.expanded_notification_footers
285
2209-68-0 cjwatson      PersonSettings.expanded_notification_footers
225 by Colin Watson
2209-68-1 cjwatson PersonSettings.expanded_notification_footers NOT NULL
286
2209-68-1 cjwatson      PersonSettings.expanded_notification_footers NOT NULL
260 by Colin Watson
2209-68-2 cjwatson PersonSettings.require_strong_email_authentication
287
2209-68-2 cjwatson      PersonSettings.require_strong_email_authentication
208 by Colin Watson
2209-69-0 cjwatson Add Snap, SnapBuild, and SnapFile
288
2209-69-0 cjwatson      Add Snap, SnapBuild, and SnapFile
218 by Colin Watson
2209-69-1 cprov Add Snap.private
289
2209-69-1 cprov         Add Snap.private
219 by Colin Watson
2209-69-2 cjwatson Webhook.snap
290
2209-69-2 cjwatson      Webhook.snap
226 by Colin Watson
2209-69-3 cjwatson Snap store uploading
291
2209-69-3 cjwatson      Snap store uploading
235 by Colin Watson
2209-69-4 cjwatson Snap auto-building
292
2209-69-4 cjwatson      Snap auto-building
236 by Colin Watson
2209-69-5 cjwatson Snap.store_channels
293
2209-69-5 cjwatson      Snap.store_channels
243 by Colin Watson
2209-69-6 -> SnappyDistroSeries.preferred instead
294
2209-69-6 cjwatson      SnappyDistroSeries.preferred
248 by Colin Watson
2209-69-7 cjwatson Snap.git_repository_url
295
2209-69-7 cjwatson      Snap.git_repository_url
250 by Colin Watson
2209-69-8 cjwatson SnapBuild.revision_id
296
2209-69-8 cjwatson      SnapBuild.revision_id
268 by Colin Watson
2209-69-9 cjwatson Index SnapFile(libraryfile)
297
2209-69-9 cjwatson      Index SnapFile(libraryfile)
213 by Colin Watson
2209-70-0 ended up being used for XRef instead.
298
2209-70-0 wgrant        XRef
214 by Colin Watson
2209-71-0 cjwatson DistroSeries.publishing_options
299
2209-71-0 cjwatson      DistroSeries.publishing_options
241 by Colin Watson
2209-71-1 cjwatson Archive.dirty_suites
300
2209-71-1 cjwatson      Archive.dirty_suites
215 by Colin Watson
2209-72-0 cjwatson BinaryPackageBuild.external_dependencies
301
2209-72-0 cjwatson      BinaryPackageBuild.external_dependencies
216 by Colin Watson
2209-73-0 cjwatson Git recipes
302
2209-73-0 cjwatson      Git recipes
255 by Colin Watson
2209-73-1 cjwatson Add NULLS LAST to SourcePackageRecipe.*builds indexes
303
2209-73-1 cjwatson      Add NULLS LAST to SourcePackageRecipe.*builds indexes
224 by Colin Watson
Swap 2209-74-0 and 2209-76-0 in order to leave fewer holes in the sequence.
304
2209-74-0 cjwatson      ArchiveFile
259 by Colin Watson
2209-74-1 cjwatson ArchiveFile.date_created, ArchiveFile.date_superseded
305
2209-74-1 cjwatson      ArchiveFile.date_created, ArchiveFile.date_superseded
222 by William Grant
GPGKey foreign key removal
306
2209-75-0 wgrant        GPGKey foreign key removal new columns
307
2209-75-1 wgrant        GPGKey foreign key removal new indexes
308
2209-75-2 wgrant        GPGKey foreign key removal
224 by Colin Watson
Swap 2209-74-0 and 2209-76-0 in order to leave fewer holes in the sequence.
309
2209-76-0 cjwatson      OAuth*Token support for macaroons, caveats, and nullable consumer keys
227 by William Grant
2209-77-0 wgrant Index LibraryFileAlias expiration queries
310
2209-77-0 wgrant        Index LibraryFileAlias expiration queries
228 by William Grant
2209-77-1 wgrant GitRepository ID sort indexes and fixed *_default indexes
311
2209-77-1 wgrant        GitRepository ID sort indexes and fixed *_default indexes
229 by William Grant
2209-77-2 wgrant Uniquely index PackageDiff(from_source, to_source)
312
2209-77-2 wgrant        Uniquely index PackageDiff(from_source, to_source)
240 by William Grant
2209-77-3 wgrant Drop disused tables, views and functions
313
2209-77-3 wgrant        Drop disused tables, views and functions
230 by Colin Watson
2209-78-0 cjwatson Drop DistributionSourcePackageCache.changelog from fti
314
2209-78-0 cjwatson      Drop DistributionSourcePackageCache.changelog from fti
231 by Colin Watson
2209-78-1 cjwatson DistributionSourcePackageCache.archive DROP NOT NULL
315
2209-78-1 cjwatson      DistributionSourcePackageCache.archive DROP NOT NULL
234 by Colin Watson
Amend 2209-78-2 to drop DistroSeriesPackageCache (binarypackagename, archive) index, which we won't use.
316
2209-78-2 cjwatson      Index DistributionSourcePackageCache(SPN, archive), DistributionSourcePackageCache(binpkgnames)
237 by Colin Watson
2209-79-0 maxiberta Add ArchiveAuthToken.name; make ArchiveAuthToken.person nullable
317
2209-79-0 maxiberta     Add ArchiveAuthToken.name; make ArchiveAuthToken.person nullable
239 by Colin Watson
2209-80-0 cjwatson Git-targeted code imports
318
2209-80-0 cjwatson      Git-targeted code imports
245 by Colin Watson
2209-80-1 cjwatson Per-target-type CodeImport(url) indexes
319
2209-80-1 cjwatson      Per-target-type CodeImport(url) indexes
246 by Colin Watson
2209-80-2 cjwatson GitRepositoryType.repository_type NOT NULL
320
2209-80-2 cjwatson      GitRepositoryType.repository_type NOT NULL
247 by William Grant
2209-81-0 wgrant Function compatibility for PostgreSQL 9.5 and 9.6
321
2209-81-0 wgrant        Function compatibility for PostgreSQL 9.5 and 9.6
249 by Colin Watson
2209-82-0 cjwatson SourcePackageRelease.buildinfo and BinaryPackageBuild.buildinfo
322
2209-82-0 cjwatson      SourcePackageRelease.buildinfo and BinaryPackageBuild.buildinfo
251 by Colin Watson
2209-82-1 cjwatson SourcePackageRelease.buildinfo and BinaryPackageBuild.buildinfo indexes
323
2209-82-1 cjwatson      SourcePackageRelease.buildinfo and BinaryPackageBuild.buildinfo indexes
256 by Colin Watson
Snap.allow_network → Snap.allow_internet
324
2209-83-0 cjwatson      Snap.allow_internet
254 by Colin Watson
2209-83-1 cjwatson Snap.auto_build_channels, SnapBuild.channels
325
2209-83-1 cjwatson      Snap.auto_build_channels, SnapBuild.channels
258 by Colin Watson
Snap.source_tarball → Snap.build_source_tarball
326
2209-83-2 cjwatson      Snap.build_source_tarball
262 by Colin Watson
2209-83-3 cjwatson SnapJob
327
2209-83-3 cjwatson      SnapJob
263 by Colin Watson
2209-83-4 cjwatson SnapBuild.build_request
328
2209-83-4 cjwatson      SnapBuild.build_request
269 by Colin Watson
Improve description of 2209-83-5.
329
2209-83-5 twom          SnapBuild.store_upload_json_data
261 by William Grant
2209-84-0 wgrant tsearch2 removal
330
2209-84-0 wgrant        tsearch2 removal
331
2209-84-1 wgrant        PostgreSQL 10 compatibility
264 by Colin Watson
2209-85-0 cjwatson GitRule, GitGrant
332
2209-85-0 cjwatson      GitRule, GitGrant
265 by Colin Watson
2209-85-1 cjwatson GitActivity
333
2209-85-1 cjwatson      GitActivity
270 by Colin Watson
2209-86-0 cjwatson PocketChroot.image_type
334
2209-86-0 cjwatson      PocketChroot.image_type
271 by Andy Brody
DistributionMirror.https_base_url
335
2209-87-0 abrody        DistributionMirror.https_base_url