From 47331700cabbd9ef23cbf830b2b83b590c4820ba Mon Sep 17 00:00:00 2001 From: MartinquaXD Date: Thu, 16 Jul 2026 12:25:05 +0000 Subject: [PATCH 1/2] Drop surplus_capturing_jit_order_owners table --- database/README.md | 12 ------------ .../114__drop_surplus_capturing_jit_order_owners.sql | 3 +++ 2 files changed, 3 insertions(+), 12 deletions(-) create mode 100644 database/sql/114__drop_surplus_capturing_jit_order_owners.sql diff --git a/database/README.md b/database/README.md index 42b8d09210..01063d9bb7 100644 --- a/database/README.md +++ b/database/README.md @@ -487,18 +487,6 @@ Indexes: - trade\_order\_uid: btree (`order_uid`, `block_number`, `log_index`) - trades_covering: btree(`order_uid`) INCLUDE (`buy_amount`, `sell_amount`, `fee_amount`) -### surplus\_capturing\_jit\_order\_owners - -Stores all surplus capturing jit order owners that are part of an auction. JIT orders settled for addresses which were not part of a given auction will not count towards surplus. - - Column | Type | Nullable | Details -------------|---------|----------|-------- -auction\_id | bigint | not null | which auction this order was part of -owners | bytea[] | not null | surplus capturing jit order owner included in the auction - -Indexes: -- PRIMARY KEY: btree(`auction_id`) - ### jit\_orders JIT orders stored here are orders that were settled outside of the competitition Auction. This means both regular JIT orders that protocol is not aware of, as well as regular user orders that were not listed in the Auction can appear in this table. diff --git a/database/sql/114__drop_surplus_capturing_jit_order_owners.sql b/database/sql/114__drop_surplus_capturing_jit_order_owners.sql new file mode 100644 index 0000000000..48eddb18c6 --- /dev/null +++ b/database/sql/114__drop_surplus_capturing_jit_order_owners.sql @@ -0,0 +1,3 @@ +-- when all the auction specific data was moved into the `competition_auctions` table +-- this one was rendered redundant +DROP TABLE IF EXISTS surplus_capturing_jit_order_owners; From b928801df7f0d2d2927585a40de3ad1931985ca1 Mon Sep 17 00:00:00 2001 From: MartinquaXD Date: Thu, 16 Jul 2026 13:31:18 +0000 Subject: [PATCH 2/2] add missing V prefix --- ...ners.sql => V114__drop_surplus_capturing_jit_order_owners.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename database/sql/{114__drop_surplus_capturing_jit_order_owners.sql => V114__drop_surplus_capturing_jit_order_owners.sql} (100%) diff --git a/database/sql/114__drop_surplus_capturing_jit_order_owners.sql b/database/sql/V114__drop_surplus_capturing_jit_order_owners.sql similarity index 100% rename from database/sql/114__drop_surplus_capturing_jit_order_owners.sql rename to database/sql/V114__drop_surplus_capturing_jit_order_owners.sql