aboutsummaryrefslogtreecommitdiff
path: root/src/exchangedb/0002-recoup.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchangedb/0002-recoup.sql')
-rw-r--r--src/exchangedb/0002-recoup.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/exchangedb/0002-recoup.sql b/src/exchangedb/0002-recoup.sql
index b8f4f4cca..36e36d9d9 100644
--- a/src/exchangedb/0002-recoup.sql
+++ b/src/exchangedb/0002-recoup.sql
@@ -105,8 +105,10 @@ BEGIN
EXECUTE FORMAT (
'ALTER TABLE ' || table_name ||
' ADD CONSTRAINT ' || table_name || '_foreign_reserves_out'
+ ' FOREIGN KEY (reserve_out_serial_id) '
' REFERENCES reserves_out (reserve_out_serial_id) ON DELETE CASCADE'
',ADD CONSTRAINT ' || table_name || '_foreign_coin_pub'
+ ' FOREIGN KEY (coin_pub) '
' REFERENCES known_coins (coin_pub)'
);
END