mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-24 14:11:13 -04:00
Add --run-background-updates
option to update_database
script. (#10954)
Signed-off-by: Nick Barrett <nick@beeper.com>
This commit is contained in:
parent
f8d0f72b27
commit
c80878d22a
8 changed files with 46 additions and 21 deletions
|
@ -25,7 +25,7 @@ python -m synapse.app.homeserver --generate-keys -c .ci/sqlite-config.yaml
|
|||
echo "--- Prepare test database"
|
||||
|
||||
# Make sure the SQLite3 database is using the latest schema and has no pending background update.
|
||||
scripts-dev/update_database --database-config .ci/sqlite-config.yaml
|
||||
scripts/update_synapse_database --database-config .ci/sqlite-config.yaml --run-background-updates
|
||||
|
||||
# Create the PostgreSQL database.
|
||||
.ci/scripts/postgres_exec.py "CREATE DATABASE synapse"
|
||||
|
@ -46,7 +46,7 @@ echo "--- Prepare empty SQLite database"
|
|||
# we do this by deleting the sqlite db, and then doing the same again.
|
||||
rm .ci/test_db.db
|
||||
|
||||
scripts-dev/update_database --database-config .ci/sqlite-config.yaml
|
||||
scripts/update_synapse_database --database-config .ci/sqlite-config.yaml --run-background-updates
|
||||
|
||||
# re-create the PostgreSQL database.
|
||||
.ci/scripts/postgres_exec.py \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue