summaryrefslogtreecommitdiff
path: root/src/exchangedb
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-31 23:27:23 +0200
committerChristian Grothoff <christian@grothoff.org>2024-03-31 23:27:23 +0200
commita2efe7962fe146efaa407217939f5cf77df8e568 (patch)
tree271257acf2c5ff99ecd3caa360995c68c5f658c2 /src/exchangedb
parent517876451e1a40ca18a1860fb1fa4088f3e0408c (diff)
downloadexchange-a2efe7962fe146efaa407217939f5cf77df8e568.tar.gz
exchange-a2efe7962fe146efaa407217939f5cf77df8e568.tar.bz2
exchange-a2efe7962fe146efaa407217939f5cf77df8e568.zip
-fix drop syntax for partitioned tables
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/0004-refunds.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchangedb/0004-refunds.sql b/src/exchangedb/0004-refunds.sql
index 71666d9db..eb9e7ad6e 100644
--- a/src/exchangedb/0004-refunds.sql
+++ b/src/exchangedb/0004-refunds.sql
@@ -12,7 +12,7 @@ BEGIN
EXECUTE FORMAT (
'ALTER TABLE ' || table_name ||
- ' DROP CONSTRAINT refunds_pkey'
+ ' DROP CONSTRAINT ' || table_name || '_pkey'
);
EXECUTE FORMAT (
'ALTER TABLE ' || table_name ||