This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commits on Sep 23, 2022
-
Make DB engines generic over cursors too
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 9acc220 - Browse repository at this point
Copy the full SHA 9acc220View commit details -
Add
executescript
to DB enginesSo we can feed in a big SQL file to sql and sqlite without having to worry about parsing it. Motivation: our handwritten sort=of-parser doesn't like the CREATE TRIGGER statements (or at least the quoting it uses) in the upcoming schema dump. Irritatingly the `cursor` that the DB engines get isn't a raw cursor but a `LoggingTransaction`. That is, the annotations I wrote on the DB engine are wrong. Maybe we can make `LoggingTransaction` generic over a cursor type in the future.
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 7343f23 - Browse repository at this point
Copy the full SHA 7343f23View commit details -
Schema dumper:
full_schema
->full_schemas
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 8fbea9e - Browse repository at this point
Copy the full SHA 8fbea9eView commit details -
Fix SQLite dumps: don't use
--indent
`--indent` is prettier, but it seems to cause SQLite to produce duff output when processing single quotes in comments.
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 736cf30 - Browse repository at this point
Copy the full SHA 736cf30View commit details -
Postgres dump: don't omit
SELECT setval(...)
Because these can alter the next `nextval`.
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 5686864 - Browse repository at this point
Copy the full SHA 5686864View commit details -
Warn to use old postgres versions
Postgres 11 introduces uses the syntax `CREATE FUNCTION` in a trigger definition, and uses that syntax when invoking `pg_dump`. But Postgres 10 doesn't recognise this and needs the spelling `CREATE PROCEDURE`.
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for f3b826c - Browse repository at this point
Copy the full SHA f3b826cView commit details -
Temporarily remove 73-series migrations
So they don't end up in full schema 72
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for fc0dcd2 - Browse repository at this point
Copy the full SHA fc0dcd2View commit details -
```shell docker run --rm -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=synapse -p 5432:5432 postgres:10-alpine echo postgres | scripts-dev/make_full_schema.sh -p synapse_user -n 72 -o synapse/storage/schema ```
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for e426cd4 - Browse repository at this point
Copy the full SHA e426cd4View commit details -
Revert "Temporarily remove 73-series migrations"
David Robertson committedSep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for 29990a9 - Browse repository at this point
Copy the full SHA 29990a9View commit details -
David Robertson committed
Sep 23, 2022 Configuration menu - View commit details
-
Copy full SHA for f6b4ba0 - Browse repository at this point
Copy the full SHA f6b4ba0View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.