aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/0002-wire_accounts.sql
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-07-30 14:02:40 +0200
committerChristian Grothoff <christian@grothoff.org>2023-07-30 14:02:40 +0200
commita29f04189c8b7457ede0b3ac01222b88853325a8 (patch)
treec00400029ee53863481c2e30ffea5c275685733c /src/exchangedb/0002-wire_accounts.sql
parentafa706914fefc90812c0bda01341e1dcfca06840 (diff)
downloadexchange-a29f04189c8b7457ede0b3ac01222b88853325a8.tar.xz
unify to TEXT instead of mixing TEXT and VARCHAR
Diffstat (limited to 'src/exchangedb/0002-wire_accounts.sql')
-rw-r--r--src/exchangedb/0002-wire_accounts.sql8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/exchangedb/0002-wire_accounts.sql b/src/exchangedb/0002-wire_accounts.sql
index 0c167dba0..dba522d7b 100644
--- a/src/exchangedb/0002-wire_accounts.sql
+++ b/src/exchangedb/0002-wire_accounts.sql
@@ -15,13 +15,13 @@
--
CREATE TABLE wire_accounts
- (payto_uri VARCHAR PRIMARY KEY
+ (payto_uri TEXT PRIMARY KEY
,master_sig BYTEA CHECK (LENGTH(master_sig)=64)
,is_active BOOLEAN NOT NULL
,last_change INT8 NOT NULL
- ,conversion_url VARCHAR DEFAULT (NULL)
- ,debit_restrictions VARCHAR DEFAULT (NULL)
- ,credit_restrictions VARCHAR DEFAULT (NULL)
+ ,conversion_url TEXT DEFAULT (NULL)
+ ,debit_restrictions TEXT DEFAULT (NULL)
+ ,credit_restrictions TEXT DEFAULT (NULL)
);
COMMENT ON TABLE wire_accounts
IS 'Table with current and historic bank accounts of the exchange. Entries never expire as we need to remember the last_change column indefinitely.';