@@ -37,10 +37,10 @@ impl PgNode {
3737
3838 let node_query = "
3939 INSERT INTO nodes (
40- id, uuid, env, hostname, address, status, created_at, modified_at, label, interface, cores, max_bandwidth_bps
40+ id, uuid, env, hostname, address, status, created_at, modified_at, label, interface, cores, max_bandwidth_bps, country
4141 )
4242 VALUES (
43- $1, $2, $3, $4, $5, $6::node_status, $7, $8, $9, $10, $11, $12
43+ $1, $2, $3, $4, $5, $6::node_status, $7, $8, $9, $10, $11, $12, $13
4444 )
4545 ON CONFLICT (id) DO UPDATE SET
4646 uuid = EXCLUDED.uuid,
@@ -52,7 +52,8 @@ impl PgNode {
5252 label = EXCLUDED.label,
5353 interface = EXCLUDED.interface,
5454 cores = EXCLUDED.cores,
55- max_bandwidth_bps = EXCLUDED.max_bandwidth_bps
55+ max_bandwidth_bps = EXCLUDED.max_bandwidth_bps,
56+ country = EXCLUDED.country
5657 " ;
5758
5859 tx. execute (
@@ -70,6 +71,7 @@ impl PgNode {
7071 & node. interface ,
7172 & cores,
7273 & node. max_bandwidth_bps ,
74+ & node. country ,
7375 ] ,
7476 )
7577 . await ?;
0 commit comments