IntersectMBO / cardano-db-sync

A component that follows the Cardano chain and stores blocks and transactions in PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

column "cold_key" of relation "committee_de_registration" contains null values

Willburn opened this issue · comments

OS
Your OS:
Ubuntu 22.04
Versions
The db-sync version (eg cardano-db-sync --version):
cardano-db-sync 13.2.0.0 - linux-x86_64 - ghc-8.10

PostgreSQL version:
PostgreSQL 14.9 (Ubuntu 14.9-0ubuntu0.22.04.1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit

Build/Install Method
The method you use to build or install cardano-db-sync:
Nix install.

Run method
The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none):
Systemd.

Additional context
Add any other context about the problem here.
Trying to migrate the database with ./cardano-db-tool -- run-migrations --mdir schema/ i get the error:
Running : migration-2-0031-20231203.sql
psql:schema/migration-2-0031-20231203.sql:26: ERROR: column "cold_key" of relation "committee_de_registration" contains null values
CONTEXT: SQL statement "ALTER TABLE "committee_de_registration" ADD COLUMN "cold_key" bytea NOT NULL"
PL/pgSQL function migrate() line 9 at EXECUTE

Problem Report
Error when trying to migrate db. Will be deleting postgres database to solve it but might be usefull for others if they also have problems migrating.

Most sancho tags don't providew backwards compatibility. From release page

It is advised to resync from genesis when upgrading to this release

Gotcha. Will do. Sorry about that :)