Skip to content

Commit

Permalink
bugfix: table name is block_headers instead of block_header (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackaugusto authored and bobbinth committed Apr 12, 2024
1 parent e22e685 commit bcbe4b4
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit bcbe4b4

Please sign in to comment.