This commit is contained in:
Christian Grothoff 2022-11-27 21:48:30 +01:00
parent c86c92200c
commit 0a75bcad23
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 2 additions and 1 deletions

View File

@ -8,3 +8,4 @@ bench-db-postgres
shard-drop0001.sqltest-exchangedb-by-j-postgres shard-drop0001.sqltest-exchangedb-by-j-postgres
test-exchangedb-by-j-postgres test-exchangedb-by-j-postgres
perf-exchangedb-reserves-in-insert-postgres perf-exchangedb-reserves-in-insert-postgres
exchange-0002.sql

View File

@ -87,7 +87,7 @@ BEGIN
EXECUTE FORMAT ( EXECUTE FORMAT (
'ALTER TABLE ' || table_name || 'ALTER TABLE ' || table_name ||
' ADD CONSTRAINT ' || table_name || '_foreign_reserve_pub' ' ADD CONSTRAINT ' || table_name || '_foreign_reserve_pub'
' FOREIGN KEY (reserve_pub) ' ' FOREIGN KEY (reserve_pub)'
' REFERENCES reserves (reserve_pub) ON DELETE CASCADE' ' REFERENCES reserves (reserve_pub) ON DELETE CASCADE'
); );
END $$; END $$;