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 archive node bug #6470

Merged
merged 3 commits into from
Oct 22, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/archive/create_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CREATE TABLE internal_commands
CREATE TABLE blocks
( id serial PRIMARY KEY
, state_hash text NOT NULL UNIQUE
, parent_id int REFERENCES blocks(id) ON DELETE SET NULL
, parent_id int NOT NULL REFERENCES blocks(id)
, creator_id int NOT NULL REFERENCES public_keys(id)
, snarked_ledger_hash_id int NOT NULL REFERENCES snarked_ledger_hashes(id)
, ledger_hash text NOT NULL
Expand All @@ -75,5 +75,5 @@ CREATE TABLE blocks_internal_commands
, internal_command_id int NOT NULL REFERENCES internal_commands(id) ON DELETE CASCADE
, sequence_no int NOT NULL
, secondary_sequence_no int
, PRIMARY KEY (block_id, internal_command_id)
, PRIMARY KEY (block_id, internal_command_id, sequence_no, secondary_sequence_no)
);