Skip to content

Commit

Permalink
Merge pull request #9848 from MinaProtocol/fix/add-pending-not-null
Browse files Browse the repository at this point in the history
  • Loading branch information
psteckler authored Nov 19, 2021
2 parents 048f1ff + 09b77b7 commit 58293b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/archive/add_chain_status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ARCHIVE=archive
echo "Creating the chain_status column, if it doesn't exist"
psql $ARCHIVE <<EOF
CREATE TYPE chain_status_type AS ENUM ('canonical', 'orphaned', 'pending');
ALTER TABLE blocks ADD COLUMN chain_status chain_status_type DEFAULT 'pending';
ALTER TABLE blocks ADD COLUMN chain_status chain_status_type NOT NULL DEFAULT 'pending';
CREATE INDEX idx_chain_status ON blocks(chain_status)
EOF

Expand Down

0 comments on commit 58293b2

Please sign in to comment.