<p>Yes, I've done this here:</p>

<pre><code>psql -d openstreetmap -c "CREATE EXTENSION btree_gist"
</code></pre>

<p>and the 3 commands</p>

<pre><code>psql -d openstreetmap -c "CREATE FUNCTION map...
...
</code></pre>

<p>Also please not my update: Uncommenting this one line makes the migration working!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/issues/685#issuecomment-33068115'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/1419053__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNTk1NzYwNCwiZGF0YSI6eyJpZCI6MjQwNjAyNTF9fQ==--cc5c6b9af8c49f5fa632e11ccfb9bcf841fabbc2.gif' height='1' width='1'></p>