Compare commits
No commits in common. "d91750ca0fa635379deaf6d6641981e6d449bc1d" and "cc7d7707ab2bd43bc9e95c0eeec9ce95cdc0c523" have entirely different histories.
d91750ca0f
...
cc7d7707ab
@ -27,7 +27,6 @@ SELECT _v.unregister_patch('exchange-0001');
|
|||||||
|
|
||||||
-- Drops for exchange-0001.sql
|
-- Drops for exchange-0001.sql
|
||||||
DROP TABLE IF EXISTS revolving_work_shards CASCADE;
|
DROP TABLE IF EXISTS revolving_work_shards CASCADE;
|
||||||
DROP TABLE IF EXISTS extensions CASCADE;
|
|
||||||
DROP TABLE IF EXISTS auditors CASCADE;
|
DROP TABLE IF EXISTS auditors CASCADE;
|
||||||
DROP TABLE IF EXISTS auditor_denom_sigs CASCADE;
|
DROP TABLE IF EXISTS auditor_denom_sigs CASCADE;
|
||||||
DROP TABLE IF EXISTS exchange_sign_keys CASCADE;
|
DROP TABLE IF EXISTS exchange_sign_keys CASCADE;
|
||||||
|
@ -2746,9 +2746,13 @@ prepare_statements (struct PostgresClosure *pg)
|
|||||||
/* Used in #postgres_set_extension_config */
|
/* Used in #postgres_set_extension_config */
|
||||||
GNUNET_PQ_make_prepare (
|
GNUNET_PQ_make_prepare (
|
||||||
"set_extension_config",
|
"set_extension_config",
|
||||||
"INSERT INTO extensions (name, config, config_sig) VALUES ($1, $2, $3) "
|
"WITH upsert AS "
|
||||||
"ON CONFLICT (name) "
|
" (UPDATE extensions "
|
||||||
"DO UPDATE SET (config, config_sig) = ($2, $3)",
|
" SET config=$2 "
|
||||||
|
" config_sig=$3 "
|
||||||
|
" WHERE name=$1 RETURNING *) "
|
||||||
|
"INSERT INTO extensions (config, config_sig) VALUES ($2, $3) "
|
||||||
|
"WHERE NOT EXISTS (SELECT * FROM upsert);",
|
||||||
3),
|
3),
|
||||||
/* Used in #postgres_get_extension_config */
|
/* Used in #postgres_get_extension_config */
|
||||||
GNUNET_PQ_make_prepare (
|
GNUNET_PQ_make_prepare (
|
||||||
|
Loading…
Reference in New Issue
Block a user