Fix unicode support

This commit is contained in:
Erik Johnston 2015-04-02 10:06:22 +01:00
parent e24c32e6f3
commit 779f7b0f44
22 changed files with 193 additions and 168 deletions

View file

@ -14,8 +14,8 @@
*/
-- Stores what transaction ids we have received and what our response was
CREATE TABLE IF NOT EXISTS received_transactions(
transaction_id VARCHAR(255),
origin VARCHAR(255),
transaction_id VARCHAR(150),
origin VARCHAR(150),
ts BIGINT,
response_code INTEGER,
response_json BLOB,
@ -30,8 +30,8 @@ CREATE INDEX IF NOT EXISTS transactions_have_ref ON received_transactions(origin
-- since referenced the transaction in another outgoing transaction
CREATE TABLE IF NOT EXISTS sent_transactions(
id BIGINT PRIMARY KEY, -- This is used to apply insertion ordering
transaction_id VARCHAR(255),
destination VARCHAR(255),
transaction_id VARCHAR(150),
destination VARCHAR(150),
response_code INTEGER DEFAULT 0,
response_json BLOB,
ts BIGINT
@ -47,9 +47,9 @@ CREATE INDEX IF NOT EXISTS sent_transaction_sent ON sent_transactions(response_c
-- For sent transactions only.
CREATE TABLE IF NOT EXISTS transaction_id_to_pdu(
transaction_id INTEGER,
destination VARCHAR(255),
pdu_id VARCHAR(255),
pdu_origin VARCHAR(255),
destination VARCHAR(150),
pdu_id VARCHAR(150),
pdu_origin VARCHAR(150),
UNIQUE (transaction_id, destination)
) ;
@ -57,7 +57,7 @@ CREATE INDEX IF NOT EXISTS transaction_id_to_pdu_dest ON transaction_id_to_pdu(d
-- To track destination health
CREATE TABLE IF NOT EXISTS destinations(
destination VARCHAR(255) PRIMARY KEY,
destination VARCHAR(150) PRIMARY KEY,
retry_last_ts BIGINT,
retry_interval INTEGER
) ;