Skip to content

Commit

Permalink
Merge pull request #20 from gobicycle/develop
Browse files Browse the repository at this point in the history
internal_withdrawals db index
  • Loading branch information
gobicycle authored Aug 30, 2024
2 parents 31deaf8 + 955a49c commit 00778d3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions deploy/db/01_init.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ CREATE INDEX IF NOT EXISTS internal_withdrawals_since_lt_index
CREATE INDEX IF NOT EXISTS internal_withdrawals_expired_at_index
ON payments.internal_withdrawals (expired_at);

CREATE INDEX IF NOT EXISTS internal_withdrawals_failed_from_address_index
ON payments.internal_withdrawals (failed, from_address);

CREATE TABLE IF NOT EXISTS payments.service_withdrawal_requests
(
memo uuid not null default gen_random_uuid() unique,
Expand Down
2 changes: 2 additions & 0 deletions deploy/manual_migrations/0.5.x-0.6.3.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX IF NOT EXISTS internal_withdrawals_failed_from_address_index
ON payments.internal_withdrawals (failed, from_address);
5 changes: 4 additions & 1 deletion manual_migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ will be filled with a 0 workchain.
1. Apply [DB migration](/deploy/manual_migrations/0.4.x-0.5.0.sql)
2. Build new docker image and recreate container for `payment-processor` as described in `Service deploy` chapter in [Readme](/README.md)

Note that this query creates a new nullable column in the `external_withdrawals` and `external_incomes` DB tables and `binary_comment` column in `withdrawal_requests` table.
Note that this query creates a new nullable column in the `external_withdrawals` and `external_incomes` DB tables and `binary_comment` column in `withdrawal_requests` table.

## v0.5.x -> v0.6.3
1. Apply [DB migration](/deploy/manual_migrations/0.5.x-0.6.3.sql)

0 comments on commit 00778d3

Please sign in to comment.