From b1f8ff38cd1e61cb72730ff4ef9f95586f999de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= <15343819+jmg-duarte@users.noreply.github.com> Date: Wed, 2 Sep 2026 17:48:26 +0100 Subject: [PATCH 1/2] Drop auction_prices table --- database/sql/V124__drop_auction_prices.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 database/sql/V124__drop_auction_prices.sql diff --git a/database/sql/V124__drop_auction_prices.sql b/database/sql/V124__drop_auction_prices.sql new file mode 100644 index 0000000000..ce836722f4 --- /dev/null +++ b/database/sql/V124__drop_auction_prices.sql @@ -0,0 +1,3 @@ +-- Drop the `auction_prices` table. Its data duplicated the `price_tokens` / +-- `price_values` arrays of `competition_auctions`, which every reader now uses. +DROP TABLE IF EXISTS auction_prices; From 4ef9c954c352ebb6bf502464c40822cdb79ee206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Duarte?= <15343819+jmg-duarte@users.noreply.github.com> Date: Tue, 8 Sep 2026 12:32:56 +0100 Subject: [PATCH 2/2] Drop auction_prices table from readme --- database/README.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/database/README.md b/database/README.md index 54e0cf7643..3899afa981 100644 --- a/database/README.md +++ b/database/README.md @@ -24,18 +24,6 @@ Column | Type | Nullable | Details Indexes: - "app\_data\_pkey" PRIMARY KEY, btree (`contract_app_data`) -### auction\_prices - -Stores the native price of a token in a given auction. Used for computations related to CIP-20. - - Column | Type | Nullable | Details -------------|---------|----------|-------- -auction\_id | bigint | not null | in which auction this price was provided -token | bytea | not null | address of the token the price refers to -price | numeric | not null | the atoms of ETH that can be bought with 1 atom of the token - -Indexes: -- PRIMARY KEY: btree(`auction_uid`, `token`) ### auctions (and auctions\_id\_seq counter)