Skip to content

Commit

Permalink
fix: message_id should not be nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
csgui committed Nov 5, 2024
1 parent c90091b commit 5ac1b45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/chainhook-cli/src/storage/signers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn initialize_signers_db(base_dir: &PathBuf, ctx: &Context) -> Result<Connec
)
.map_err(|e| format!("unable to create table: {e}"))?;
conn.execute(
"CREATE INDEX IF NOT EXISTS index_messages_on_received_at ON messages(received_at_block_height)",
"CREATE INDEX IF NOT EXISTS index_messages_on_received_at ON messages(received_at_block_height)",
[]
).map_err(|e| format!("unable to create index: {e}"))?;
conn.execute(
Expand Down Expand Up @@ -108,7 +108,7 @@ pub fn initialize_signers_db(base_dir: &PathBuf, ctx: &Context) -> Result<Connec
conn.execute(
"CREATE TABLE IF NOT EXISTS mock_proposals (
id INTEGER PRIMARY KEY AUTOINCREMENT,
message_id INTEGER,
message_id INTEGER NOT NULL,
burn_block_height INTEGER NOT NULL,
stacks_tip_consensus_hash TEXT NOT NULL,
stacks_tip TEXT NOT NULL,
Expand Down Expand Up @@ -143,7 +143,7 @@ pub fn initialize_signers_db(base_dir: &PathBuf, ctx: &Context) -> Result<Connec
"CREATE TABLE IF NOT EXISTS mock_signatures (
id INTEGER PRIMARY KEY AUTOINCREMENT,
mock_proposal_id INTEGER NOT NULL,
message_id INTEGER,
message_id INTEGER NOT NULL,
mock_block_id INTEGER,
server_version TEXT NOT NULL,
signature TEXT NOT NULL,
Expand Down

0 comments on commit 5ac1b45

Please sign in to comment.