From: Daniel Golle Date: Wed, 12 Oct 2016 23:12:56 +0000 (+0000) Subject: psycstore: postgres: remove size modifier from BYTEA fields X-Git-Tag: initial-import-from-subversion-38251~104 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=41e2d697bb63faabe9ffbaccd7ca5d9b93989d6b;p=oweals%2Fgnunet.git psycstore: postgres: remove size modifier from BYTEA fields ERROR: type modifier is not allowed for type "bytea" --- diff --git a/src/psycstore/plugin_psycstore_postgres.c b/src/psycstore/plugin_psycstore_postgres.c index 3439856b9..9240d3334 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")) ||