<p></p>
<p dir="auto">There are a few small differences between our structure.sql file, and the output generated from rails schema dumping on my system. I'm not sure whether this is because of different rails versions or different postgresql versions used between the time that these bits of the file were generated, and today. But it's a bit annoying when trying to develop migrations, so if it's possible for us to resolve them it'll make our developers lives a little bit easier.</p>
<p dir="auto">On my own system, I get four main differences:</p>
<ul dir="auto">
<li>The <code class="notranslate">AS integer</code> phrase for sequences isn't included on my system, but we have it in our structure.sql file</li>
<li>The <code class="notranslate">ar_internal_metadata</code> table has a slightly different definition, i.e.
<div class="highlight highlight-source-diff" dir="auto"><pre class="notranslate"><span class="pl-md"><span class="pl-md">-</span> created_at timestamp(6) without time zone NOT NULL,</span>
<span class="pl-md"><span class="pl-md">-</span> updated_at timestamp(6) without time zone NOT NULL</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> created_at timestamp without time zone NOT NULL,</span>
<span class="pl-mi1"><span class="pl-mi1">+</span> updated_at timestamp without time zone NOT NULL</span></pre></div>
</li>
<li>There is a comment added on the btree_gist extension</li>
<li>The schema_migrations table has a wildly different order, but I'll ignore that for now</li>
</ul>
<p dir="auto">I'm interested to know, before I make a pull request, whether my experience is typical. You can test yourself by running <code class="notranslate">bundle exec rails db:schema:dump</code> followed by <code class="notranslate">git diff</code> to see what the differences are on your own system between the schema dump and what we have in structure.sql.</p>
<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/issues/4298">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKHI3VPVMCRVVNAXEDX77VD3AVCNFSM6AAAAAA6FVRJH6VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DSOJWGU2TCMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJIVS3BPX5X7GCCIZDX77VD3A5CNFSM6AAAAAA6FVRJH6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHIOQ4ZE.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/issues/4298</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/issues/4298",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/4298",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>