summary refs log tree commit diff
path: root/synapse/storage/schema/delta/15
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-04-28 12:41:33 +0100
committerErik Johnston <erik@matrix.org>2015-04-28 12:41:33 +0100
commit18f82477011ee9279bde8ad995d654c116d3f652 (patch)
treee7f351c8597515399195754507e777050ade8016 /synapse/storage/schema/delta/15
parentCorrectly handle total/remaining counts in the presence of sent_transasctions... (diff)
downloadsynapse-18f82477011ee9279bde8ad995d654c116d3f652.tar.xz
Use TEXT instead of VARCHAR(n), since PostgreSQL treats them the same except for a limit
Diffstat (limited to 'synapse/storage/schema/delta/15')
-rw-r--r--synapse/storage/schema/delta/15/appservice_txns.sql4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/schema/delta/15/appservice_txns.sql b/synapse/storage/schema/delta/15/appservice_txns.sql
index 1c3324f415..db2e720393 100644
--- a/synapse/storage/schema/delta/15/appservice_txns.sql
+++ b/synapse/storage/schema/delta/15/appservice_txns.sql
@@ -14,13 +14,13 @@
  */
 
 CREATE TABLE IF NOT EXISTS application_services_state(
-    as_id VARCHAR(150) PRIMARY KEY,
+    as_id TEXT PRIMARY KEY,
     state VARCHAR(5),
     last_txn INTEGER
 );
 
 CREATE TABLE IF NOT EXISTS application_services_txns(
-    as_id VARCHAR(150) NOT NULL,
+    as_id TEXT NOT NULL,
     txn_id INTEGER NOT NULL,
     event_ids TEXT NOT NULL,
     UNIQUE(as_id, txn_id)