diff options
author | Neil Johnson <neil@matrix.org> | 2019-04-08 15:37:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 15:37:26 +0100 |
commit | 2d951686a71fd0c8b927d96fa183747ff2982bf9 (patch) | |
tree | 126fa291fe4baed6a91f1a7816d068edb7f4b00d /synapse/storage/schema/delta/14 | |
parent | Merge pull request #5001 from matrix-org/rav/keyring_cleanups (diff) | |
download | synapse-2d951686a71fd0c8b927d96fa183747ff2982bf9.tar.xz |
drop tables listed in #1830 (#4992)
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
Diffstat (limited to 'synapse/storage/schema/delta/14')
-rw-r--r-- | synapse/storage/schema/delta/14/upgrade_appservice_db.py | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/synapse/storage/schema/delta/14/upgrade_appservice_db.py b/synapse/storage/schema/delta/14/upgrade_appservice_db.py deleted file mode 100644 index 4d725b92fe..0000000000 --- a/synapse/storage/schema/delta/14/upgrade_appservice_db.py +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 2015, 2016 OpenMarket Ltd -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import logging - -import simplejson as json - -logger = logging.getLogger(__name__) - - -def run_create(cur, *args, **kwargs): - cur.execute("SELECT id, regex FROM application_services_regex") - for row in cur.fetchall(): - try: - logger.debug("Checking %s..." % row[0]) - json.loads(row[1]) - except ValueError: - # row isn't in json, make it so. - string_regex = row[1] - new_regex = json.dumps({ - "regex": string_regex, - "exclusive": True - }) - cur.execute( - "UPDATE application_services_regex SET regex=? WHERE id=?", - (new_regex, row[0]) - ) - - -def run_upgrade(*args, **kwargs): - pass |