File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed
synapse/storage/data_stores/main/schema/full_schemas Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change
1
+ Add some clarifications to `README.md` in the database schema directory.
Original file line number Diff line number Diff line change 1
- # Building full schema dumps
1
+ # Synapse Database Schemas
2
2
3
- These schemas need to be made from a database that has had all background updates run.
3
+ These schemas are used as a basis to create brand new Synapse databases, on both
4
+ SQLite3 and Postgres.
4
5
5
- To do so, use ` scripts-dev/make_full_schema.sh ` . This will produce
6
- ` full.sql.postgres ` and ` full.sql.sqlite ` files.
6
+ ## Building full schema dumps
7
+
8
+ If you want to recreate these schemas, they need to be made from a database that
9
+ has had all background updates run.
10
+
11
+ To do so, use ` scripts-dev/make_full_schema.sh ` . This will produce new
12
+ ` full.sql.postgres ` and ` full.sql.sqlite ` files.
7
13
8
14
Ensure postgres is installed and your user has the ability to run bash commands
9
- such as ` createdb ` .
15
+ such as ` createdb ` , then call
16
+
17
+ ./scripts-dev/make_full_schema.sh -p postgres_username -o output_dir/
10
18
11
- ```
12
- ./scripts-dev/make_full_schema.sh -p postgres_username -o output_dir/
13
- ```
19
+ There are currently two folders with full-schema snapshots. ` 16 ` is a snapshot
20
+ from 2015, for historical reference. The other contains the most recent full
21
+ schema snapshot.
You can’t perform that action at this time.
0 commit comments