fix drop tables, and bump schema version

This commit is contained in:
Neil Johnson 2019-04-03 16:25:44 +01:00
parent 40340f46ac
commit 25744a1e86
8 changed files with 9 additions and 32 deletions

View file

@ -25,7 +25,7 @@ logger = logging.getLogger(__name__)
# Remember to update this number every time a change is made to database # Remember to update this number every time a change is made to database
# schema files, so the users will be informed on server restarts. # schema files, so the users will be informed on server restarts.
SCHEMA_VERSION = 54 SCHEMA_VERSION = 55
dir_path = os.path.abspath(os.path.dirname(__file__)) dir_path = os.path.abspath(os.path.dirname(__file__))

View file

@ -14,15 +14,10 @@
*/ */
/** /* We used to create a table called presence_list, but this is no longer used
* The positions in the event stream_ordering when the current_state was * and is removed in delta 54.
* replaced by the state at the event.
*/ */
CREATE TABLE IF NOT EXISTS current_state_resets(
event_stream_ordering BIGINT PRIMARY KEY NOT NULL
);
/* The outlier events that have aquired a state group typically through /* The outlier events that have aquired a state group typically through
* backfill. This is tracked separately to the events table, as assigning a * backfill. This is tracked separately to the events table, as assigning a
* state group change the position of the existing event in the stream * state group change the position of the existing event in the stream

View file

@ -1,18 +0,0 @@
/* Copyright 2019 New Vector 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.
*/
DROP TABLE IF EXISTS application_services;
DROP TABLE IF EXISTS application_services_regex;
DROP TABLE IF EXISTS transaction_id_to_pdu;

View file

@ -14,7 +14,7 @@
*/ */
/* We used to create a tables called event_content_hashes, event_signatures and /* We used to create a tables called event_content_hashes, event_signatures and
* event_edge_hashes, but these are no longer used and are removed in delta 54. * event_edge_hashes, but these are no longer used and are removed in delta 55.
*/ */
CREATE TABLE IF NOT EXISTS event_reference_hashes ( CREATE TABLE IF NOT EXISTS event_reference_hashes (

View file

@ -14,7 +14,7 @@
*/ */
/* We used to create a tables called room_hosts and feedback, /* We used to create a tables called room_hosts and feedback,
* but these are no longer used and are removed in delta 54. * but these are no longer used and are removed in delta 55.
*/ */
CREATE TABLE IF NOT EXISTS events( CREATE TABLE IF NOT EXISTS events(

View file

@ -14,7 +14,7 @@
*/ */
/* We used to create a tables called event_content_hashes and event_edge_hashes, /* We used to create a tables called event_content_hashes and event_edge_hashes,
* but these are no longer used and are removed in delta 54. * but these are no longer used and are removed in delta 55.
*/ */
CREATE TABLE IF NOT EXISTS event_reference_hashes ( CREATE TABLE IF NOT EXISTS event_reference_hashes (

View file

@ -14,7 +14,7 @@
*/ */
/* We used to create a tables called room_hosts and feedback, /* We used to create a tables called room_hosts and feedback,
* but these are no longer used and are removed in delta 54. * but these are no longer used and are removed in delta 55.
*/ */
CREATE TABLE IF NOT EXISTS events( CREATE TABLE IF NOT EXISTS events(

View file

@ -28,5 +28,5 @@ CREATE TABLE IF NOT EXISTS presence_allow_inbound(
UNIQUE (observed_user_id, observer_user_id) UNIQUE (observed_user_id, observer_user_id)
); );
-- We used to create a table called presence_list, but this is no longer used -- We used to create a table called presence_list, but this is no longer used
-- and is removed in delta 54. -- and is removed in delta 55.