<p dir="auto">This seems to be the only table that doesn't actually have a primary key defined in the database for some reason, instead we just lie to rails about it's existence.</p>
<p dir="auto">It also improves our monkey patched primary key support for migrations to allow concurrent builds of primary keys and fix removal of primary keys which it seems has never worked.</p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/4279'>https://github.com/openstreetmap/openstreetmap-website/pull/4279</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4279/commits/132bb9ad598c8a91b25f9a5010b21d25f1cffff9" class="commit-link">132bb9a</a> Improve support for primary keys in migrations</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4279/commits/387ecce798585022ffac69d28ae703c737c36f3b" class="commit-link">387ecce</a> Add a primary key to the changeset_tags table</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4279/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4279/files#diff-0a387e55d510dce7686761db80135118e68a1ec66c125e3217a2871055fd8b36">config/initializers/migrate.rb</a>
(42)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4279/files#diff-c3fb8065644bfa6e6fc056b3f6d1780d09698e80abd719f51ac325cfe6d8f117">db/migrate/20231007141103_add_primary_key_to_changeset_tags.rb</a>
(13)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4279/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
(16)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4279.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4279.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4279.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4279.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4279">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLN5A3T63Y5ZJDYDZ43X6KIDPAVCNFSM6AAAAAA5XUHVE2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHEZTCNZXGY4TSOI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLZQN3F2GTVIA6V4F3X6KIDPA5CNFSM6AAAAAA5XUHVE2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHGJET44.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4279</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4279",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4279",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>