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 authored and jeremyletang committed Jul 20, 2023
1 parent 74ec0aa commit aee2a4a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -24,6 +24,7 @@

- [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.4
Expand Down
7 changes: 6 additions & 1 deletion 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;
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 aee2a4a

Please sign in to comment.