@@ -362,12 +362,11 @@ pub(crate) fn deployment_statuses(
362
362
. collect ( )
363
363
}
364
364
365
- #[ derive( Queryable , QueryableByName , Identifiable , Associations ) ]
365
+ #[ derive( Queryable , Selectable , Identifiable , Associations ) ]
366
366
#[ diesel( table_name = subgraph_manifest) ]
367
367
#[ diesel( belongs_to( GraphNodeVersion ) ) ]
368
368
// We never read the id field but map it to make the interaction with Diesel
369
369
// simpler
370
- #[ allow( dead_code) ]
371
370
struct StoredSubgraphManifest {
372
371
id : i32 ,
373
372
spec_version : String ,
@@ -376,12 +375,10 @@ struct StoredSubgraphManifest {
376
375
features : Vec < String > ,
377
376
schema : String ,
378
377
graph_node_version_id : Option < i32 > ,
379
- use_bytea_prefix : bool ,
380
378
start_block_number : Option < i32 > ,
381
379
start_block_hash : Option < Bytes > ,
382
380
raw_yaml : Option < String > ,
383
381
entities_with_causality_region : Vec < String > ,
384
- on_sync : Option < String > ,
385
382
history_blocks : i32 ,
386
383
}
387
384
@@ -480,6 +477,7 @@ pub fn deployment_entity(
480
477
481
478
let manifest = m:: table
482
479
. find ( site. id )
480
+ . select ( StoredSubgraphManifest :: as_select ( ) )
483
481
. first :: < StoredSubgraphManifest > ( conn) ?;
484
482
485
483
let detail = d:: table
0 commit comments