Skip to content

Commit 9200855

Browse files
authored
[indexer] alter public key to use text type. (#499)
* alter public key to use text type. * fix linter.
1 parent 33f8836 commit 9200855

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- This file should undo anything in `up.sql`
2+
ALTER TABLE signatures
3+
ALTER COLUMN public_key TYPE VARCHAR(136);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Your SQL goes here
2+
ALTER TABLE signatures
3+
ALTER COLUMN public_key TYPE TEXT;

rust/processor/src/db/postgres/schema.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,8 +963,7 @@ diesel::table! {
963963
is_sender_primary -> Bool,
964964
#[sql_name = "type"]
965965
type_ -> Varchar,
966-
#[max_length = 136]
967-
public_key -> Varchar,
966+
public_key -> Text,
968967
signature -> Text,
969968
threshold -> Int8,
970969
public_key_indices -> Jsonb,

rust/processor/src/processors/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ pub trait ProcessorTrait: Send + Sync + Debug {
9999

100100
/// Gets the connection.
101101
/// If it was unable to do so (default timeout: 30s), it will keep retrying until it can.
102+
#[allow(elided_named_lifetimes)]
102103
async fn get_conn(&self) -> DbPoolConnection {
103104
let pool = self.connection_pool();
104105
loop {

0 commit comments

Comments
 (0)