synapse/scripts-dev
Erik Johnston 3ccc5184e0
Fix schema lint script to understand CREATE TABLE IF NOT EXISTS (#19020)
The schema lint tries to make sure we don't add or remove indices in
schema files (rather than as background updates), *unless* the table was
created in the same schema file.

The regex to pull out the `CREATE TABLE` SQL incorrectly didn't
recognise `IF NOT EXISTS`.

There is a test delta file that shows that we accept different types of
`CREATE TABLE` and `CREATE INDEX` statements, as well as an index
creation that doesn't have a matching create table (to show that we do
still catch it). The test delta should be removed before merge.
2025-10-31 13:16:47 +00:00
..
build_debian_packages.py Drop Python 3.9, bump tests/builds to Python 3.10 (#19099) 2025-10-29 12:15:00 -05:00
check_line_terminators.sh Update license headers 2023-11-21 15:29:58 -05:00
check_locked_deps_have_sdists.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
check_schema_delta.py Fix schema lint script to understand CREATE TABLE IF NOT EXISTS (#19020) 2025-10-31 13:16:47 +00:00
check-newsfragment.sh Update book location 2023-12-13 16:15:22 +00:00
complement.sh Configure Synapse to run MSC4306: Thread Subscriptions Complement tests. (#18819) 2025-09-09 11:40:10 +01:00
config-lint.sh
database-save.sh Drop unused table presence (#14825) 2023-01-13 14:17:03 +00:00
docker_update_debian_changelog.sh Update license headers 2023-11-21 15:29:58 -05:00
dump_macaroon.py
federation_client.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
gen_config_documentation.py Use UTF-8 for config doc generation (#18580) 2025-07-22 17:54:47 +00:00
generate_sample_config.sh
lint.sh Pydantic v2 (#19071) 2025-10-31 09:22:22 +00:00
make_full_schema.sh Make it easier to use DataGrip w/ Synapse's schema (#14982) 2023-02-15 13:51:37 +00:00
mypy_synapse_plugin.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
next_github_number.sh Fix typo 2023-12-13 16:37:10 +00:00
release.py Add a docs page with common steps to review the release notes (#19109) 2025-10-29 11:32:33 +00:00
schema_versions.py Use type hinting generics in standard collections (#19046) 2025-10-22 16:48:19 -05:00
sign_json.py Introduce Clock.call_when_running(...) to include logcontext by default (#18944) 2025-09-22 10:27:59 -05:00