Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Split presence out of master (#9820) | Erik Johnston | 2021-04-23 | 1 | -2/+5 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Fix SQL delta file taking a long time to run (#9516) | Erik Johnston | 2021-03-02 | 1 | -0/+2 |
| | | | | Fixes #9504 | ||||
* | Include newly added sequences in the port DB script. (#9449) | Patrick Cloke | 2021-02-23 | 1 | -24/+41 |
| | | | And ensure the consistency of `event_auth_chain_id`. | ||||
* | Add background update for add chain cover index (#9029) | Erik Johnston | 2021-01-14 | 1 | -1/+1 |
| | |||||
* | Allow running sendToDevice on workers (#9044) | Erik Johnston | 2021-01-07 | 1 | -0/+27 |
| | |||||
* | Fix port script so that it can be run again after failure. (#8755) | Erik Johnston | 2020-11-13 | 1 | -30/+54 |
| | | | | | | | If the script fails (or is CTRL-C'ed) between porting some of the events table and copying of the sequences then the port script will immediately die if run again due to the postgres DB having inconsistencies between sequences and tables. The fix is to move the porting of sequences to before porting the tables, so that there is never a period where the Postgres DB is inconsistent. To do that we need to change how we port the sequences so that it calculates the values from the SQLite DB rather than the Postgres DB. Fixes #8619 | ||||
* | Fix port script fails when DB has no backfilled events. (#8729) | Erik Johnston | 2020-11-11 | 1 | -7/+5 |
| | | | Fixes #8618 | ||||
* | Fix port script to handle foreign key constraints (#8730) | Erik Johnston | 2020-11-11 | 1 | -6/+62 |
| | |||||
* | Improve start time by adding index to e2e_cross_signing_keys (#8694) | Erik Johnston | 2020-11-02 | 1 | -0/+2 |
| | | | We do a `SELECT MAX(stream_id) FROM e2e_cross_signing_keys` on startup. | ||||
* | Cast errors generated during synapse_port_db to str (#8585) | Andrew Morgan | 2020-10-20 | 1 | -2/+3 |
| | | | | | | | | | I noticed in https://github.com/matrix-org/synapse/issues/8575 that the `end_error` variable in `synapse_port_db` is set to an `Exception`, even though later we expect it to be a `str`. This PR simply casts an exception raised to a string. I'm doing this instead of having `end_error` be of type exception as we explicitly set `end_error` to a str here: https://github.com/matrix-org/synapse/blob/d25eb8f3709965d0face01a041d5292490bf0139/scripts/synapse_port_db#L542-L547 This whole file could probably use some heavy refactoring, but until then at least this fix will prevent exception contents from being hidden from us and users. | ||||
* | Add support for MSC2732: olm fallback keys (#8312) | Hubert Chathi | 2020-10-06 | 1 | -0/+1 |
| | |||||
* | Add logging on startup/shutdown (#8448) | Erik Johnston | 2020-10-02 | 1 | -1/+1 |
| | | | | | This is so we can tell what is going on when things are taking a while to start up. The main change here is to ensure that transactions that are created during startup get correctly logged like normal transactions. | ||||
* | Add `ui_auth_sessions_ips` table to `synapse_port_db` ignore list (#8410) | Dagfinn Ilmari Mannsåker | 2020-09-28 | 1 | -0/+1 |
| | | | | | | This table was created in #8034 (1.20.0). It references `ui_auth_sessions`, which is ignored, so this one should be too. Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | ||||
* | Add new sequences to port DB script (#8387) | Erik Johnston | 2020-09-24 | 1 | -0/+24 |
| | |||||
* | Mark the shadow_banned column as boolean in synapse_port_db. (#8386) | Patrick Cloke | 2020-09-24 | 1 | -0/+1 |
| | |||||
* | Revert #7736 (#8039) | Brendan Abolivier | 2020-08-06 | 1 | -1/+1 |
| | |||||
* | Rename database classes to make some sense (#8033) | Erik Johnston | 2020-08-05 | 1 | -39/+39 |
| | |||||
* | Re-implement unread counts (#7736) | Brendan Abolivier | 2020-07-29 | 1 | -1/+1 |
| | |||||
* | Use a postgres sequence to generate guest user IDs | Richard van der Hoff | 2020-07-16 | 1 | -1/+11 |
| | |||||
* | Sync ignored table names in synapse_port_db to current database schema (#7717) | Patrick Cloke | 2020-06-23 | 1 | -4/+12 |
| | |||||
* | Allow local media to be marked as safe from being quarantined. (#7718) | Patrick Cloke | 2020-06-22 | 1 | -0/+1 |
| | |||||
* | Ignore the UI Auth sessions when porting from sqlite to postgresql (#7711) | Patrick Cloke | 2020-06-17 | 1 | -7/+12 |
| | |||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -3/+1 |
| | |||||
* | Add option to move event persistence off master (#7517) | Erik Johnston | 2020-05-22 | 1 | -0/+3 |
| | |||||
* | Support any process writing to cache invalidation stream. (#7436) | Erik Johnston | 2020-05-07 | 1 | -2/+2 |
| | |||||
* | Port synapse_port_db to async/await (#6718) | Brendan Abolivier | 2020-01-21 | 1 | -82/+112 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Raise an exception if there are pending background updates So we return with a non-0 code * Changelog * Port synapse_port_db to async/await * Port update_database to async/await * Add version string to mocked homeservers * Remove unused imports * Convert overseen bits to async/await * Fixup logging contexts * Fix imports * Add a way to print an error without raising an exception * Incorporate review | ||||
* | Add `local_current_membership` table (#6655) | Erik Johnston | 2020-01-15 | 1 | -1/+1 |
| | | | | | | | Currently we rely on `current_state_events` to figure out what rooms a user was in and their last membership event in there. However, if the server leaves the room then the table may be cleaned up and that information is lost. So lets add a table that separately holds that information. | ||||
* | Refuse to start if sqlite is older than 3.11.0 | Richard van der Hoff | 2020-01-09 | 1 | -4/+12 |
| | |||||
* | Modify check_database to take a connection rather than a cursor | Richard van der Hoff | 2020-01-09 | 1 | -18/+7 |
| | | | | We might not need the cursor at all. | ||||
* | Add a background update to clear tombstoned rooms from the directory (#6648) | Richard van der Hoff | 2020-01-07 | 1 | -0/+5 |
| | | | | | | * Add a background update to clear tombstoned rooms from the directory * use the ABC metaclass | ||||
* | Split state groups into a separate data store (#6296) | Erik Johnston | 2019-12-20 | 1 | -4/+4 |
| | |||||
* | Add database config class (#6513) | Erik Johnston | 2019-12-18 | 1 | -34/+24 |
| | | | | | This encapsulates config for a given database and is the way to get new connections. | ||||
* | Fix port db script | Erik Johnston | 2019-12-06 | 1 | -34/+2 |
| | |||||
* | Fix DB scripts | Erik Johnston | 2019-12-05 | 1 | -5/+9 |
| | |||||
* | Move DB pool and helper functions into dedicated Database class | Erik Johnston | 2019-12-05 | 1 | -36/+37 |
| | |||||
* | Merge pull request #6464 from matrix-org/erikj/make_public_sql_base | Erik Johnston | 2019-12-05 | 1 | -9/+9 |
|\ | | | | | Clean up SQLBaseStore private function usage | ||||
| * | Remove underscore from SQLBaseStore functions | Erik Johnston | 2019-12-04 | 1 | -9/+9 |
| | | |||||
* | | Fix background updates for synapse_port_db | Brendan Abolivier | 2019-12-04 | 1 | -0/+2 |
| | | |||||
* | | Make synapse_port_db exit with a non-0 code if something failed | Brendan Abolivier | 2019-12-04 | 1 | -0/+1 |
|/ | |||||
* | Fix error when using synapse_port_db on a vanilla synapse db | Andrew Morgan | 2019-12-02 | 1 | -1/+4 |
| | |||||
* | Remove usage of deprecated logger.warn method from codebase (#6271) | Andrew Morgan | 2019-10-31 | 1 | -3/+3 |
| | | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated. | ||||
* | Merge pull request #6247 from matrix-org/babolivier/port_db_column | Brendan Abolivier | 2019-10-24 | 1 | -0/+1 |
|\ | | | | | Add new boolean column to synapse_port_db | ||||
| * | Add new boolean column to synapse_port_db | Brendan Abolivier | 2019-10-24 | 1 | -0/+1 |
| | | |||||
* | | Fix up changelog v1.5.0rc1 | Andrew Morgan | 2019-10-24 | 1 | -7/+9 |
|/ | |||||
* | Fix import paths in synapse_port_db | Brendan Abolivier | 2019-10-23 | 1 | -11/+19 |
| | |||||
* | Make synapse_port_db correctly create indexes (#6102) | Brendan Abolivier | 2019-10-23 | 1 | -52/+130 |
| | | | | | | | Make `synapse_port_db` correctly create indexes in the PostgreSQL database, by having it run the background updates on the database before migrating the data. To ensure we're migrating the right data, also block the port if the SQLite3 database still has pending or ongoing background updates. Fixes #4877 | ||||
* | Add missing BOOLEAN_COLUMNs to synapse_port_db (#6216) | Bart Noordervliet | 2019-10-18 | 1 | -0/+2 |
| | | | | Small fix to synapse_port_db to be able to convert from database schema v56. | ||||
* | Add account_validity's email_sent column to the list of boolean columns in ↵ | Brendan Abolivier | 2019-06-03 | 1 | -0/+1 |
| | | | | | | synapse_port_db Fixes #5306 | ||||
* | drop tables listed in #1830 (#4992) | Neil Johnson | 2019-04-08 | 1 | -5/+0 |
| | | | | | | | | | | | | | | | Tables dropped: * application_services, * application_services_regex, * transaction_id_to_pdu, * stats_reporting * current_state_resets * event_content_hashes * event_destinations * event_edge_hashes * event_signatures * feedback * room_hosts * state_forward_extremities | ||||
* | Fix issue #4596 | Anders | 2019-04-03 | 1 | -1/+1 |
| | | | | | Make synapse_port_db --curses work with Python 3. Signed-off-by: Anders Jensen-Waud <anders@jensenwaud.com> | ||||
* | Consider e2e_room_keys.is_verified column as boolean | Eric | 2019-02-20 | 1 | -0/+1 |
| | | | | | | | This column was considered as an int, crashing the whole migration process Signed-off-by: Eric <eric@pedr0.net> | ||||
* | Fix a number of flake8 errors | Richard van der Hoff | 2018-10-24 | 1 | -1/+2 |
| | | | | | | | | | | | | Broadly three things here: * disable W504 which seems a bit whacko * remove a bunch of `as e` expressions from exception handlers that don't use them * use `r""` for strings which include backslashes Also, we don't use pep8 any more, so we can get rid of the duplicate config there. | ||||
* | Make scripts/ and scripts-dev/ pass pyflakes (and the rest of the codebase ↵ | Amber Brown | 2018-10-20 | 1 | -150/+122 |
| | | | | on py3) (#4068) | ||||
* | Replace some type checks with six type checks | Adrian Tschira | 2018-04-07 | 1 | -1/+3 |
| | | | | Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* | Port script: Set up state_group_id_seq | Richard van der Hoff | 2018-04-06 | 1 | -0/+13 |
| | | | | Fixes https://github.com/matrix-org/synapse/issues/3050. | ||||
* | Port script: clean up a bit | Richard van der Hoff | 2018-04-06 | 1 | -25/+29 |
| | | | | | Improve logging and comments. Group all the stuff to do with inspecting tables together rather than creating the port tables in the middle. | ||||
* | Port script: avoid nasty errors when setting up | Richard van der Hoff | 2018-04-06 | 1 | -8/+6 |
| | | | | We really shouldn't spit out "Failed to create port table", it looks scary. | ||||
* | Less s's | Erik Johnston | 2017-11-14 | 1 | -2/+2 |
| | |||||
* | Add new boolean columns to port script | Erik Johnston | 2017-11-14 | 1 | -0/+7 |
| | |||||
* | Make the port script drop NUL values in all tables | David Baker | 2017-10-31 | 1 | -7/+19 |
| | | | | | | Postgres doesn't support NULs in strings so it makes the script throw an exception and stop if any values contain \0. Drop them with appropriate warning. | ||||
* | Add groups table to BOOLEAN_COLUMNS in synapse_port_db | Luke Barnard | 2017-10-26 | 1 | -0/+1 |
| | |||||
* | Fix port script | Erik Johnston | 2017-10-26 | 1 | -0/+1 |
| | | | | | | | We changed _simple_update_one_txn to use _simple_update_txn but didn't yank it out in the port script. Fixes #2565 | ||||
* | Drop search values with nul characters | Richard van der Hoff | 2017-10-02 | 1 | -4/+7 |
| | | | | | | https://github.com/matrix-org/synapse/issues/2187 contains a report of a port failing due to nul characters somewhere in the search table. Let's try dropping the offending rows. | ||||
* | Extend comment | Erik Johnston | 2017-07-20 | 1 | -1/+2 |
| | |||||
* | Fix port script for user directory tables | Erik Johnston | 2017-07-20 | 1 | -0/+18 |
| | |||||
* | add missing boolean to synapse_port_db | Matthew | 2017-06-16 | 1 | -0/+1 |
| | |||||
* | fix synapse_port script | Matthew | 2017-06-16 | 1 | -1/+1 |
| | |||||
* | Don't assume postgres tables are in the public schema during db port | John Kristensen | 2017-03-17 | 1 | -3/+1 |
| | | | | | | | When fetching the list of tables from the postgres database during the db port, it is assumed that the tables are in the public schema. This is not always the case, so lets just rely on postgres to determine the default schema to use. | ||||
* | Fix typo | Kevin Liu | 2017-02-11 | 1 | -1/+1 |
| | | | This is what I get for not proofreading | ||||
* | Fix synapse_port_db failure (fixes #1902) | Kevin Liu | 2017-02-11 | 1 | -0/+1 |
| | | | | | See https://matrix.to/#/!cURbafjkfsMDVwdRDQ:matrix.org/$148686272020hCgRD:potatofrom.space Signed-off-by: Kevin Liu <kevin@potatofrom.space> | ||||
* | Update port script with recently added tables | Erik Johnston | 2016-09-27 | 1 | -0/+9 |
| | | | | | | This also fixes a bug where the port script would explode when it encountered the newly added boolean column `public_room_list_stream.visibility` | ||||
* | Allow upgrading from old port_from_sqlite3 format | Erik Johnston | 2016-08-04 | 1 | -0/+21 |
| | |||||
* | Handle the fact that some tables have negative rowid rows | Erik Johnston | 2016-08-04 | 1 | -43/+111 |
| | |||||
* | Update port script | Erik Johnston | 2016-04-22 | 1 | -42/+81 |
| | |||||
* | Don't require config to create database | Erik Johnston | 2016-04-06 | 1 | -8/+5 |
| | |||||
* | Mark AS users with their AS's ID | Daniel Wagner-Hall | 2016-02-11 | 1 | -2/+7 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Spelling | Erik Johnston | 2015-11-19 | 1 | -1/+1 |
| | |||||
* | Fix database port script to work with new event_search table | Erik Johnston | 2015-11-18 | 1 | -11/+44 |
| | |||||
* | Remove unused _execute_and_decode from scripts/synapse_port_db | Mark Haines | 2015-09-23 | 1 | -2/+0 |
| | |||||
* | Merge branch 'master' into develop | Mark Haines | 2015-09-07 | 1 | -6/+9 |
|\ | | | | | | | | | Conflicts: setup.py | ||||
| * | Make port script handle empty sent_transactions table | Erik Johnston | 2015-09-02 | 1 | -6/+9 |
| | | |||||
* | | update logger to match new ambiguous script name... | Matthew Hodgson | 2015-09-03 | 1 | -1/+1 |
|/ | |||||
* | Clean up scripts/ | Erik Johnston | 2015-08-27 | 1 | -0/+760 |