mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-21 03:42:55 +03:00
Remove non-ASCII-representable characters to fix py35-old tests.
This commit is contained in:
parent
703f9ff3c9
commit
c9646770d1
2 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ INSERT INTO stats_incremental_position (
|
|||
CREATE TABLE IF NOT EXISTS room_stats_current (
|
||||
room_id TEXT NOT NULL PRIMARY KEY,
|
||||
|
||||
-- These starts cover the time from start_ts…end_ts (in seconds).
|
||||
-- These starts cover the time from start_ts...end_ts (in seconds).
|
||||
-- Note that end_ts is quantised, and start_ts usually so.
|
||||
start_ts BIGINT,
|
||||
end_ts BIGINT,
|
||||
|
@ -91,7 +91,7 @@ CREATE TABLE IF NOT EXISTS room_stats_current (
|
|||
-- represents HISTORICAL room statistics for a room
|
||||
CREATE TABLE IF NOT EXISTS room_stats_historical (
|
||||
room_id TEXT NOT NULL,
|
||||
-- These starts cover the time from (end_ts - bucket_size)…end_ts (in seconds).
|
||||
-- These stats cover the time from (end_ts - bucket_size)...end_ts (in seconds).
|
||||
-- Note that end_ts is quantised, and start_ts usually so.
|
||||
end_ts BIGINT NOT NULL,
|
||||
bucket_size INT NOT NULL,
|
||||
|
|
|
@ -22,7 +22,7 @@ def _run_create_generic(stats_type, cursor, database_engine):
|
|||
"""
|
||||
Creates the pertinent (partial, if supported) indices for one kind of stats.
|
||||
Args:
|
||||
stats_type: "room" or "user" – the type of stats
|
||||
stats_type: "room" or "user" - the type of stats
|
||||
cursor: Database Cursor
|
||||
database_engine: Database Engine
|
||||
"""
|
||||
|
@ -72,7 +72,7 @@ def _run_create_generic(stats_type, cursor, database_engine):
|
|||
def run_create(cursor, database_engine):
|
||||
"""
|
||||
This function is called as part of the schema delta.
|
||||
It will create indices – partial, if supported – for the new 'separated'
|
||||
It will create indices - partial, if supported - for the new 'separated'
|
||||
room & user statistics.
|
||||
"""
|
||||
_run_create_generic("room", cursor, database_engine)
|
||||
|
|
Loading…
Reference in a new issue