aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore/plugin_psycstore_postgres.c
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2016-10-12 23:12:56 +0000
committerDaniel Golle <daniel@makrotopia.org>2016-10-12 23:12:56 +0000
commit41e2d697bb63faabe9ffbaccd7ca5d9b93989d6b (patch)
tree67539a8eb74c27fddffee236b2dfd19a31b8ce95 /src/psycstore/plugin_psycstore_postgres.c
parent41f2b9356fb9649d7b1732603aad2831648da323 (diff)
psycstore: postgres: remove size modifier from BYTEA fields
ERROR: type modifier is not allowed for type "bytea"
Diffstat (limited to 'src/psycstore/plugin_psycstore_postgres.c')
-rw-r--r--src/psycstore/plugin_psycstore_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/psycstore/plugin_psycstore_postgres.c b/src/psycstore/plugin_psycstore_postgres.c
index 3439856b94..9240d33348 100644
--- a/src/psycstore/plugin_psycstore_postgres.c
+++ b/src/psycstore/plugin_psycstore_postgres.c
@@ -100,7 +100,7 @@ database_setup (struct Plugin *plugin)
GNUNET_POSTGRES_exec(plugin->dbh,
"CREATE TABLE IF NOT EXISTS channels (\n"
" id SERIAL,\n"
- " pub_key BYTEA(32),\n"
+ " pub_key BYTEA,\n"
" max_state_message_id BIGINT,\n"
" state_hash_message_id BIGINT,\n"
" PRIMARY KEY(id)\n"
@@ -121,7 +121,7 @@ database_setup (struct Plugin *plugin)
GNUNET_POSTGRES_exec(plugin->dbh,
"CREATE TABLE IF NOT EXISTS slaves (\n"
" id SERIAL,\n"
- " pub_key BYTEA(32),\n"
+ " pub_key BYTEA,\n"
" PRIMARY KEY(id)\n"
")" "WITH OIDS")) ||