fix sharding

This commit is contained in:
Marco Boss 2022-04-06 11:33:50 +02:00
parent f3a4b00907
commit adb999ce2c
No known key found for this signature in database
GPG Key ID: 89A3EC33C625C3DF

View File

@ -2292,19 +2292,48 @@ BEGIN
; ;
ALTER TABLE IF EXISTS purse_requests ALTER TABLE IF EXISTS purse_requests
DROP CONSTRAINT IF EXISTS purse_requests_reserve_pub_request_timestamp_pkey DROP CONSTRAINT IF EXISTS purse_requests_pkey CASCADE
;
ALTER TABLE IF EXISTS purse_merges
DROP CONSTRAINT IF EXISTS purse_merges_pkey CASCADE
;
ALTER TABLE IF EXISTS account_merges
DROP CONSTRAINT IF EXISTS account_merges_pkey CASCADE
;
ALTER TABLE IF EXISTS contracts
DROP CONSTRAINT IF EXISTS contracts_pkey CASCADE
;
ALTER TABLE IF EXISTS history_requests
DROP CONSTRAINT IF EXISTS history_requests_pkey CASCADE
; ;
ALTER TABLE IF EXISTS close_requests ALTER TABLE IF EXISTS close_requests
DROP CONSTRAINT IF EXISTS close_requests_reserve_pub_close_timestamp_pkey DROP CONSTRAINT IF EXISTS close_requests_pkey CASCADE
; ;
ALTER TABLE IF EXISTS purse_deposits ALTER TABLE IF EXISTS purse_deposits
DROP CONSTRAINT IF EXISTS purse_deposits_purse_pub_coin_pub_pkey DROP CONSTRAINT IF EXISTS purse_deposits_pkey CASCADE
;
ALTER TABLE IF EXISTS wads_out
DROP CONSTRAINT IF EXISTS wads_out_pkey CASCADE
;
ALTER TABLE IF EXISTS wad_out_entries
DROP CONSTRAINT IF EXISTS wad_out_entries_pkey CASCADE
; ;
ALTER TABLE IF EXISTS wads_in ALTER TABLE IF EXISTS wads_in
DROP CONSTRAINT IF EXISTS wads_in_wad_id_origin_exchange_url_key CASCADE DROP CONSTRAINT IF EXISTS wads_in_pkey CASCADE
,DROP CONSTRAINT IF EXISTS wads_in_wad_id_origin_exchange_url_key
;
ALTER TABLE IF EXISTS wad_in_entries
DROP CONSTRAINT IF EXISTS wad_in_entries_pkey CASCADE
; ;
END END