mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Add upgrade notes about chain cover.
This commit is contained in:
parent
c8e6e05842
commit
1b37107cac
20
UPGRADE.rst
20
UPGRADE.rst
@ -104,25 +104,29 @@ back to v1.25.0 you need to:
|
||||
|
||||
UPDATE schema_version SET version = 58;
|
||||
|
||||
3. Delete the ignored users data:
|
||||
|
||||
If using PostgreSQL:
|
||||
3. Delete the ignored users & chain cover data:
|
||||
|
||||
.. code:: sql
|
||||
|
||||
TRUNCATE TABLE ignored_users;
|
||||
DROP TABLE IF EXISTS ignored_users;
|
||||
UPDATE rooms SET has_auth_chain_index = false;
|
||||
|
||||
If using SQLite:
|
||||
For PostgreSQL run:
|
||||
|
||||
.. code:: sql
|
||||
TRUNCATE event_auth_chain_links;
|
||||
TRUNCATE event_auth_chains;
|
||||
|
||||
DELETE FROM ignored_users;
|
||||
For SQLite run:
|
||||
|
||||
4. Mark the ignored user delta as not run (so it will re-run on upgrade).
|
||||
DELETE FROM event_auth_chain_links;
|
||||
DELETE FROM event_auth_chains;
|
||||
|
||||
4. Mark the deltas as not run (so they will re-run on upgrade).
|
||||
|
||||
.. code:: sql
|
||||
|
||||
DELETE FROM applied_schema_deltas WHERE version = 59 AND file = "59/01ignored_user.py";
|
||||
DELETE FROM applied_schema_deltas WHERE version = 59 AND file = "59/06chain_cover_index.sql";
|
||||
|
||||
5. Downgrade Synapse by following the instructions for your installation method
|
||||
in the "Rolling back to older versions" section above.
|
||||
|
Loading…
Reference in New Issue
Block a user