forked-synapse/synapse/storage/databases/main/schema/full_schemas
Eric Eastwood 80d6dc9783
Remove conflicting sqlite tables that are "reserved" (shadow fts4 tables) (#9003)
Remove conflicting sqlite tables that throw sqlite3.OperationalError: object name reserved for internal use: event_search_content when running the twisted unit tests.

Fix #8996
2021-02-10 20:12:57 +00:00
..
16 Rename database classes to make some sense (#8033) 2020-08-05 21:38:57 +01:00
54 Remove conflicting sqlite tables that are "reserved" (shadow fts4 tables) (#9003) 2021-02-10 20:12:57 +00:00
README.md Rename database classes to make some sense (#8033) 2020-08-05 21:38:57 +01:00

Synapse Database Schemas

These schemas are used as a basis to create brand new Synapse databases, on both SQLite3 and Postgres.

Building full schema dumps

If you want to recreate these schemas, they need to be made from a database that has had all background updates run.

To do so, use scripts-dev/make_full_schema.sh. This will produce new full.sql.postgres and full.sql.sqlite files.

Ensure postgres is installed and your user has the ability to run bash commands such as createdb, then call

./scripts-dev/make_full_schema.sh -p postgres_username -o output_dir/

There are currently two folders with full-schema snapshots. 16 is a snapshot from 2015, for historical reference. The other contains the most recent full schema snapshot.