diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-28 12:41:33 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-28 12:41:33 +0100 |
commit | 18f82477011ee9279bde8ad995d654c116d3f652 (patch) | |
tree | e7f351c8597515399195754507e777050ade8016 /synapse/storage/schema/delta/13 | |
parent | Correctly handle total/remaining counts in the presence of sent_transasctions... (diff) | |
download | synapse-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/13')
-rw-r--r-- | synapse/storage/schema/delta/13/v13.sql | 10 |
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 d1da2b48e2..3265924013 100644 --- a/synapse/storage/schema/delta/13/v13.sql +++ b/synapse/storage/schema/delta/13/v13.sql @@ -15,10 +15,10 @@ CREATE TABLE IF NOT EXISTS application_services( id INTEGER PRIMARY KEY AUTOINCREMENT, - url VARCHAR(150), - token VARCHAR(150), - hs_token VARCHAR(150), - sender VARCHAR(150), + url TEXT, + token TEXT, + hs_token TEXT, + sender TEXT, UNIQUE(token) ); @@ -26,6 +26,6 @@ CREATE TABLE IF NOT EXISTS application_services_regex( id INTEGER PRIMARY KEY AUTOINCREMENT, as_id BIGINT UNSIGNED NOT NULL, namespace INTEGER, /* enum[room_id|room_alias|user_id] */ - regex VARCHAR(150), + regex TEXT, FOREIGN KEY(as_id) REFERENCES application_services(id) ); |