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. |
||
|---|---|---|
| .. | ||
| build_debian_packages.py | ||
| check_line_terminators.sh | ||
| check_locked_deps_have_sdists.py | ||
| check_schema_delta.py | ||
| check-newsfragment.sh | ||
| complement.sh | ||
| config-lint.sh | ||
| database-save.sh | ||
| docker_update_debian_changelog.sh | ||
| dump_macaroon.py | ||
| federation_client.py | ||
| gen_config_documentation.py | ||
| generate_sample_config.sh | ||
| lint.sh | ||
| make_full_schema.sh | ||
| mypy_synapse_plugin.py | ||
| next_github_number.sh | ||
| release.py | ||
| schema_versions.py | ||
| sign_json.py | ||