From 13fc01316fe49b42123c990fcbf573668e4512dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= <15343819+jmg-duarte@users.noreply.github.com> Date: Thu, 30 Jul 2026 16:43:38 +0100 Subject: [PATCH 1/2] Drop solver_competitions table --- database/sql/V115__drop_solver_competitions.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 database/sql/V115__drop_solver_competitions.sql diff --git a/database/sql/V115__drop_solver_competitions.sql b/database/sql/V115__drop_solver_competitions.sql new file mode 100644 index 0000000000..a4f862fab6 --- /dev/null +++ b/database/sql/V115__drop_solver_competitions.sql @@ -0,0 +1,5 @@ +-- Drop the solver_competitions table, which was kept only to provide frontend with solver-ids +-- since https://github.com/cowprotocol/cowswap/pull/7871 this is no longer the case +-- and since https://github.com/cowprotocol/services/pull/4657 this has been made effective +-- turning this table obsolete +DROP TABLE IF EXISTS solver_competitions; From 8716f6507f74d03c0cbc29bbdf6169a72881c0a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= <15343819+jmg-duarte@users.noreply.github.com> Date: Fri, 31 Jul 2026 10:24:20 +0100 Subject: [PATCH 2/2] remove table from readme --- database/README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/database/README.md b/database/README.md index 01063d9bb7..d9ff276ffe 100644 --- a/database/README.md +++ b/database/README.md @@ -457,18 +457,6 @@ Indexes: - PRIMARY KEY: btree(`auction_id`, `solver`, `solution_uid`) - settlement\_executions\_time\_range\_index: btree(`start_timestamp`, `end_timestamp`) -### solver\_competitions - -Stores an overview of the solver competition. It contains orders in the auction along with prices for every relevant token as well as all valid solutions submitted by solvers together with their quality. - - Column | Type | Nullable | Details ---------|--------|----------|-------- - id | bigint | not null | id of the auction that the solver competition belongs to - json | jsonb | nullable | overview of the solver competition with unspecified format - -Indexes: -- PRIMARY KEY: btree(`id`) - ### trades This table contains data of [`Trade`](https://github.com/cowprotocol/contracts/blob/main/src/contracts/GPv2Settlement.sol#L49-L58) events issued by the settlement contract after a successful settlement.