Skip to content

Commit 1577dd3

Browse files
committed
store: Add paused_at and assigned_at to subgraph_deployment_assignmen table
1 parent 0ce43c2 commit 1577dd3

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Define the 'down' migration to remove the 'paused_at' and 'assigned_at' fields from 'subgraph_deployment_assignment' table
2+
ALTER TABLE subgraphs.subgraph_deployment_assignment
3+
DROP COLUMN paused_at,
4+
DROP COLUMN assigned_at;
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Define the 'up' migration to add the 'paused_at' and 'assigned_at' fields to 'subgraph_deployment_assignment' table
2+
ALTER TABLE subgraphs.subgraph_deployment_assignment
3+
ADD COLUMN paused_at TIMESTAMPTZ NULL,
4+
ADD COLUMN assigned_at TIMESTAMPTZ NULL;

store/postgres/src/primary.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ table! {
9393
subgraphs.subgraph_deployment_assignment {
9494
id -> Integer,
9595
node_id -> Text,
96+
paused_at -> Nullable<Timestamptz>,
97+
assigned_at -> Nullable<Timestamptz>,
9698
}
9799
}
98100

0 commit comments

Comments
 (0)