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

bugfix: table name is block_headers instead of block_header #283

Merged
merged 1 commit into from
Mar 21, 2024
Merged
Changes from all commits
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
6 changes: 3 additions & 3 deletions store/src/db/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub static MIGRATIONS: Lazy<Migrations> = Lazy::new(|| {
PRIMARY KEY (block_num, note_index),
CONSTRAINT notes_block_number_is_u32 CHECK (block_num >= 0 AND block_num < 4294967296),
CONSTRAINT notes_note_index_is_u32 CHECK (note_index >= 0 AND note_index < 4294967296),
FOREIGN KEY (block_num) REFERENCES block_header (block_num)
FOREIGN KEY (block_num) REFERENCES block_headers (block_num)
) STRICT, WITHOUT ROWID;
CREATE TABLE
Expand All @@ -38,7 +38,7 @@ pub static MIGRATIONS: Lazy<Migrations> = Lazy::new(|| {
block_num INTEGER NOT NULL,
PRIMARY KEY (account_id),
FOREIGN KEY (block_num) REFERENCES block_header (block_num),
FOREIGN KEY (block_num) REFERENCES block_headers (block_num),
CONSTRAINT accounts_block_num_is_u32 CHECK (block_num >= 0 AND block_num < 4294967296)
) STRICT, WITHOUT ROWID;
Expand All @@ -53,7 +53,7 @@ pub static MIGRATIONS: Lazy<Migrations> = Lazy::new(|| {
CONSTRAINT nullifiers_nullifier_is_digest CHECK (length(nullifier) = 32),
CONSTRAINT nullifiers_nullifier_prefix_is_u16 CHECK (nullifier_prefix >= 0 AND nullifier_prefix < 65536),
CONSTRAINT nullifiers_block_number_is_u32 CHECK (block_number >= 0 AND block_number < 4294967296),
FOREIGN KEY (block_number) REFERENCES block_header (block_num)
FOREIGN KEY (block_number) REFERENCES block_headers (block_num)
) STRICT, WITHOUT ROWID;
",
)])
Expand Down
Loading