This commit is contained in:
reivilibre
2026-08-11 11:58:18 +00:00
parent 74a07ec707
commit eef595b3e3
113 changed files with 120 additions and 126 deletions
+5 -8
View File
@@ -37,7 +37,7 @@
const path_to_root = "../";
const default_light_theme = "light";
const default_dark_theme = "navy";
window.path_to_searchindex_js = "../searchindex-b96362db.js";
window.path_to_searchindex_js = "../searchindex-497e99a8.js";
</script>
<!-- Start loading toc.js asap -->
<script src="../toc-64310643.js"></script>
@@ -275,13 +275,10 @@ reference only.</p>
<h3 id="building-full-schema-dumps"><a class="header" href="#building-full-schema-dumps">Building full schema dumps</a></h3>
<p>If you want to recreate these schemas, they need to be made from a database that
has had all background updates run.</p>
<p>To do so, use <code>scripts-dev/make_full_schema.sh</code>. This will produce new
<code>full.sql.postgres</code> and <code>full.sql.sqlite</code> files.</p>
<p>Ensure postgres is installed, then run:</p>
<pre><code class="language-sh">./scripts-dev/make_full_schema.sh -p postgres_username -o output_dir/
</code></pre>
<p>NB at the time of writing, this script predates the split into separate <code>state</code>/<code>main</code>
databases so will require updates to handle that correctly.</p>
<p>To do so, use the <code>make_full_schema.sh</code> script. This will produce new
<code>full.sql.postgres</code> and <code>full.sql.sqlite</code> files, after having applied ALL
schema deltas and background updates.</p>
<p>Run <code>poetry run scripts-dev/make_full_schema.sh -h</code> for usage instructions.</p>
<h2 id="delta-files"><a class="header" href="#delta-files">Delta files</a></h2>
<p>Delta files define the steps required to upgrade the database from an earlier version.
They can be written as either a file containing a series of SQL statements, or a Python