Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: oracle_spec table null data error #8870

Merged
merged 1 commit into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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[];