Skip to content
Snippets Groups Projects
Commit 86fc9b61 authored by Erik Johnston's avatar Erik Johnston
Browse files

For backwards compat, make state_groups.id have a type of int, not varchar

parent 90bcb869
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
*/
CREATE TABLE IF NOT EXISTS state_groups(
id VARCHAR(20) PRIMARY KEY,
id BIGINT UNSIGNED PRIMARY KEY,
room_id VARCHAR(150) NOT NULL,
event_id VARCHAR(150) NOT NULL
);
......
......@@ -93,7 +93,7 @@ class StateStore(SQLBaseStore):
state_group = context.state_group
if not state_group:
state_group = _make_group_id(self._clock)
state_group = self._state_groups_id_gen.get_next_txn(txn)
self._simple_insert_txn(
txn,
table="state_groups",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment