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) 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;