mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 07:23:52 +01:00
For backwards compat, make state_groups.id have a type of int, not varchar
This commit is contained in:
parent
90bcb86957
commit
86fc9b617c
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS state_groups(
|
CREATE TABLE IF NOT EXISTS state_groups(
|
||||||
id VARCHAR(20) PRIMARY KEY,
|
id BIGINT UNSIGNED PRIMARY KEY,
|
||||||
room_id VARCHAR(150) NOT NULL,
|
room_id VARCHAR(150) NOT NULL,
|
||||||
event_id VARCHAR(150) NOT NULL
|
event_id VARCHAR(150) NOT NULL
|
||||||
);
|
);
|
||||||
|
|
|
@ -93,7 +93,7 @@ class StateStore(SQLBaseStore):
|
||||||
|
|
||||||
state_group = context.state_group
|
state_group = context.state_group
|
||||||
if not 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(
|
self._simple_insert_txn(
|
||||||
txn,
|
txn,
|
||||||
table="state_groups",
|
table="state_groups",
|
||||||
|
|
Loading…
Reference in a new issue