@@ -362,12 +362,11 @@ pub(crate) fn deployment_statuses(
362362 . collect ( )
363363}
364364
365- #[ derive( Queryable , QueryableByName , Identifiable , Associations ) ]
365+ #[ derive( Queryable , Selectable , Identifiable , Associations ) ]
366366#[ diesel( table_name = subgraph_manifest) ]
367367#[ diesel( belongs_to( GraphNodeVersion ) ) ]
368368// We never read the id field but map it to make the interaction with Diesel
369369// simpler
370- #[ allow( dead_code) ]
371370struct StoredSubgraphManifest {
372371 id : i32 ,
373372 spec_version : String ,
@@ -376,12 +375,10 @@ struct StoredSubgraphManifest {
376375 features : Vec < String > ,
377376 schema : String ,
378377 graph_node_version_id : Option < i32 > ,
379- use_bytea_prefix : bool ,
380378 start_block_number : Option < i32 > ,
381379 start_block_hash : Option < Bytes > ,
382380 raw_yaml : Option < String > ,
383381 entities_with_causality_region : Vec < String > ,
384- on_sync : Option < String > ,
385382 history_blocks : i32 ,
386383}
387384
@@ -480,6 +477,7 @@ pub fn deployment_entity(
480477
481478 let manifest = m:: table
482479 . find ( site. id )
480+ . select ( StoredSubgraphManifest :: as_select ( ) )
483481 . first :: < StoredSubgraphManifest > ( conn) ?;
484482
485483 let detail = d:: table
0 commit comments