<p dir="auto">These primary keys were converted to bigints in migrations, but the sequences were left unmentioned. If the original migrations are run on postgresql 10.0+, then this leads to a mismatch in column types vs sequence types. This migration fixes these mismatches.</p>
<p dir="auto">If the original migrations were run on postgresql < 10, all sequences were bigints anyway, and this migration is a no-op.</p>
<p dir="auto">If the sequence is a bigint, then postgresql doesn't output that fact in the statement dump.</p>
<p dir="auto">Refs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1949965513" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4298" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4298/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4298">#4298</a></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/4391'>https://github.com/openstreetmap/openstreetmap-website/pull/4391</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4391/commits/367fa44a74c06563b6f0e23c1e9db888769f57f0" class="commit-link">367fa44</a>  Migrate some sequences to use bigints</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4391/files">2 files</a>)</p>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4391/files#diff-5781c90f6eaefcf531c61cb79fdb674a346afe7f88759412db07f11d5dac8dcd">db/migrate/20231206141457_alter_sequences_bigint.rb</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4391/files#diff-1dd5a8f580b9615769ddc19a64a98f455d9d20eb149c443f41d9d3c797d39b12">db/structure.sql</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4391.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4391.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4391.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4391.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/4391">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNS2GK6KPYDBPRHSMTYICBOXAVCNFSM6AAAAABAJQM3BKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDQNZUGIZTINA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKDKYLGNO4BYXFY6U3YICBOXA5CNFSM6AAAAABAJQM3BKWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHR3BGZA.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/4391</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/4391",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4391",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>