From 45cf97cb6e82be7b509aea046b60b0e89dfcb7d4 Mon Sep 17 00:00:00 2001 From: Tan Quach Date: Thu, 20 Jul 2023 18:33:27 +0100 Subject: [PATCH] fix: oracle_spec table null data error --- CHANGELOG.md | 3 ++- datanode/sqlstore/migrations/0004_oracle_specs.sql | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69c12404f9..db6d097933 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ - [8862](https://github.com/vegaprotocol/vega/issues/8862) - Fix settlement via governance - [8772](https://github.com/vegaprotocol/vega/issues/8772) - Checkpoint panic on successor markets. - [8837](https://github.com/vegaprotocol/vega/issues/8837) - Remove successor entries from snapshot if they will be removed next tick. +- [8868](https://github.com/vegaprotocol/vega/issues/8868) - Fix `oracle_specs` table null value error. ## 0.72.1 @@ -104,7 +105,7 @@ - [8402](https://github.com/vegaprotocol/vega/issues/8402) - Avoid division by 0 in market activity tracker - [8347](https://github.com/vegaprotocol/vega/issues/8347) - Market state (`ELS`) to be included in checkpoint data. - [8303](https://github.com/vegaprotocol/vega/issues/8303) - Add support for successor markets in datanode. -- [8118](https://github.com/vegaprotocol/vega/issues/8118) - Spot market execution +- [8118](https://github.com/vegaprotocol/vega/issues/8118) - Spot market execution - [7416](https://github.com/vegaprotocol/vega/issues/7416) - Support for governance transfers - [7701](https://github.com/vegaprotocol/vega/issues/7701) - Support parallel request on different party on the wallet API - [8353](https://github.com/vegaprotocol/vega/issues/8353) - Improve ledger entry `CSV` export. diff --git a/datanode/sqlstore/migrations/0004_oracle_specs.sql b/datanode/sqlstore/migrations/0004_oracle_specs.sql index 0355e137e1..70f0777361 100644 --- a/datanode/sqlstore/migrations/0004_oracle_specs.sql +++ b/datanode/sqlstore/migrations/0004_oracle_specs.sql @@ -1,4 +1,9 @@ -- +goose Up ALTER TABLE oracle_specs DROP COLUMN IF EXISTS signers; ALTER TABLE oracle_specs DROP COLUMN IF EXISTS filters; -ALTER TABLE oracle_specs ADD COLUMN data JSONB NOT NULL; \ No newline at end of file +ALTER TABLE oracle_specs ADD COLUMN data JSONB; + +-- +goose Down +ALTER TABLE oracle_specs DROP COLUMN IF EXISTS data; +ALTER TABLE oracle_specs ADD COLUMN filters jsonb; +ALTER TABLE oracle_specs ADD COLUMN signers bytea[];