summary refs log tree commit diff
path: root/scripts-dev/make_full_schema.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make it easier to use DataGrip w/ Synapse's schema (#14982)David Robertson2023-02-151-3/+17
| | | | | | Also tweak the schema dump script: - add a note explaining myself how to use it -Explicitly call `poetry run`, because not everyone uses direnv :(
* Snapshot schema 72 (#13873)David Robertson2022-09-261-14/+46
| | | Including another batch of fixes to the schema dump script
* Generate separate snapshots for logical databases (#13792)David Robertson2022-09-201-41/+125
| | | | | | | * Generate separate snapshots for sqlite, postgres and common * Cleanup postgres dbs in the TRAP * Say which logical DB we're applying updates to * Run background updates on the state DB * Add new option for accepting a SCHEMA_NUMBER
* Updates to the schema dump script (#13770)David Robertson2022-09-131-32/+16
|
* Move scripts directory inside synapse, exposing as setuptools entry_points ↵David Robertson2022-03-021-3/+3
| | | | | | | | | | | | (#12118) * Two scripts are basically entry_points already * Move and rename scripts/* to synapse/_scripts/*.py * Delete sync_room_to_group.pl * Expose entry points in setup.py * Update linter script and config * Fixup scripts & docs mentioning scripts that moved Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Add `--run-background-updates` option to `update_database` script. (#10954)Nick Barrett2021-10-061-1/+1
| | | | Signed-off-by: Nick Barrett <nick@beeper.com>
* Fix make_full_schema to create the db with the right options and user (#9931)Richard van der Hoff2021-05-071-9/+10
|
* Use interpreter from $PATH instead of absolute paths in various scripts ↵Quentin Gliech2021-03-251-1/+1
| | | | | | | | | using /usr/bin/env (#9689) On NixOS, `bash` isn't under `/bin/bash` but rather in some directory in `$PATH`. Locally, I've been patching those scripts to make them work. `/usr/bin/env` seems to be the only [portable way](https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my) to use binaries from the PATH as interpreters. Signed-off-by: Quentin Gliech <quentingliech@gmail.com>
* Remove conflicting sqlite tables that are "reserved" (shadow fts4 tables) ↵Eric Eastwood2021-02-101-0/+11
| | | | | | | (#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
* Add dev script to generate full SQL schema files (#6394)Andrew Morgan2019-12-111-0/+184