From a9549fdce3fcb383e3d4725bce2d408f1d96b7d3 Mon Sep 17 00:00:00 2001
From: Mark Haines <mark.haines@matrix.org>
Date: Wed, 29 Apr 2015 13:16:09 +0100
Subject: [PATCH] Use bytea rather than BLOB

---
 synapse/storage/schema/delta/15/server_keys.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/synapse/storage/schema/delta/15/server_keys.sql b/synapse/storage/schema/delta/15/server_keys.sql
index 9cb589ff6..513c30a71 100644
--- a/synapse/storage/schema/delta/15/server_keys.sql
+++ b/synapse/storage/schema/delta/15/server_keys.sql
@@ -19,6 +19,6 @@ CREATE TABLE IF NOT EXISTS server_keys_json (
     from_server TEXT, -- Which server the keys were fetched from.
     ts_added_ms INTEGER, -- When the keys were fetched
     ts_valid_until_ms INTEGER, -- When this version of the keys exipires.
-    key_json BLOB, -- JSON certificate for the remote server.
+    key_json bytea, -- JSON certificate for the remote server.
     CONSTRAINT uniqueness UNIQUE (server_name, key_id, from_server)
 );