summary refs log tree commit diff
path: root/synapse/storage/schema/delta/13
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-19 13:42:39 +0000
committerErik Johnston <erik@matrix.org>2015-03-19 13:42:39 +0000
commitfae059cc18c0aab25b79d5352aa98ccfda8c637a (patch)
treeb168772b8381bc4df6139086f42d9646247fb295 /synapse/storage/schema/delta/13
parentUpdate schema to work with mariadb (diff)
downloadsynapse-fae059cc18c0aab25b79d5352aa98ccfda8c637a.tar.xz
Fix up schemas to work with mariadb
Diffstat (limited to 'synapse/storage/schema/delta/13')
-rw-r--r--synapse/storage/schema/delta/13/v13.sql10
1 files changed, 5 insertions, 5 deletions
diff --git a/synapse/storage/schema/delta/13/v13.sql b/synapse/storage/schema/delta/13/v13.sql
index 68d4ebd896..f0a5daf445 100644
--- a/synapse/storage/schema/delta/13/v13.sql
+++ b/synapse/storage/schema/delta/13/v13.sql
@@ -14,18 +14,18 @@
  */
 
 CREATE TABLE IF NOT EXISTS application_services(
-    id INTEGER PRIMARY KEY,
+    id BIGINT PRIMARY KEY,
     url VARCHAR(255),
     token VARCHAR(255),
     hs_token VARCHAR(255),
     sender VARCHAR(255),
     UNIQUE(token)
-);
+) ENGINE = INNODB;
 
 CREATE TABLE IF NOT EXISTS application_services_regex(
-    id INTEGER PRIMARY KEY,
-    as_id INTEGER NOT NULL,
+    id BIGINT PRIMARY KEY,
+    as_id BIGINT NOT NULL,
     namespace INTEGER,  /* enum[room_id|room_alias|user_id] */
     regex VARCHAR(255),
     FOREIGN KEY(as_id) REFERENCES application_services(id)
-);
+) ENGINE = INNODB;