0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-15 05:43:52 +01:00

Merge pull request #1087 from matrix-org/markjh/reapply_delta

Reapply 34/device_outbox in 35/device_outbox_again.py since the schem…
This commit is contained in:
Mark Haines 2016-09-09 11:24:27 +01:00 committed by GitHub
commit 303b6f29f0

View file

@ -13,6 +13,7 @@
* limitations under the License. * limitations under the License.
*/ */
DROP TABLE IF EXISTS device_federation_outbox;
CREATE TABLE device_federation_outbox ( CREATE TABLE device_federation_outbox (
destination TEXT NOT NULL, destination TEXT NOT NULL,
stream_id BIGINT NOT NULL, stream_id BIGINT NOT NULL,
@ -21,16 +22,18 @@ CREATE TABLE device_federation_outbox (
); );
DROP INDEX IF EXISTS device_federation_outbox_destination_id;
CREATE INDEX device_federation_outbox_destination_id CREATE INDEX device_federation_outbox_destination_id
ON device_federation_outbox(destination, stream_id); ON device_federation_outbox(destination, stream_id);
DROP TABLE IF EXISTS device_federation_inbox;
CREATE TABLE device_federation_inbox ( CREATE TABLE device_federation_inbox (
origin TEXT NOT NULL, origin TEXT NOT NULL,
message_id TEXT NOT NULL, message_id TEXT NOT NULL,
received_ts BIGINT NOT NULL received_ts BIGINT NOT NULL
); );
DROP INDEX IF EXISTS device_federation_inbox_sender_id;
CREATE INDEX device_federation_inbox_sender_id CREATE INDEX device_federation_inbox_sender_id
ON device_federation_inbox(origin, message_id); ON device_federation_inbox(origin, message_id);