Skip to content

Commit

Permalink
Merge pull request #8870 from vegaprotocol/fix/oracle-spec-data-needs…
Browse files Browse the repository at this point in the history
…-default

fix: oracle_spec table null data error
  • Loading branch information
guoguojin committed Jul 20, 2023
2 parents c7c94d3 + 45cf97c commit 8f72b96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion datanode/sqlstore/migrations/0004_oracle_specs.sql
Original file line number Diff line number Diff line change
@@ -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;
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[];

0 comments on commit 8f72b96

Please sign in to comment.