Skip to content

Store timestamp when marking subgraph as synced #5566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

encalypto
Copy link
Contributor

We migrate synced from a boolean value to a nullable synced_at timestamp on subgraphs.subgraph_deployment and unused_deployments. The default timestamp used in the migration is the unix epoch, 1970-01-01 00:00:00+00.

Note that in the down migration we skip removal of the DEFAULT false on unused_deployments.

We migrate `synced` from a boolean to a nullable `synced_at` timestamp
on `subgraphs.subgraph_deployment` and `unused_deployments`. The default
timestamp used in the migration is the unix epoch,
`1970-01-01 00:00:00+00`.

Note that in the down migration we skip removal of the `DEFAULT false`
on `unused_deployments.`
@encalypto encalypto marked this pull request as ready for review July 25, 2024 15:34
@fordN fordN requested a review from mangas July 25, 2024 15:47
@fordN fordN added the enhancement New feature or request label Jul 25, 2024
@fordN fordN requested a review from lutter August 5, 2024 15:51
Copy link
Collaborator

@lutter lutter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I've been wanting to have that for a long time. Would be nice to do the same thing for failed at some point.

@encalypto encalypto merged commit 2d751ca into master Aug 8, 2024
7 checks passed
@encalypto encalypto deleted the store-subgraph-synced-timestamp branch August 8, 2024 15:11
zorancv pushed a commit that referenced this pull request Aug 12, 2024
We migrate `synced` from a boolean value to a nullable `synced_at`
timestamp on `subgraphs.subgraph_deployment` and `unused_deployments`.
The default timestamp used in the migration is the unix epoch,
`1970-01-01 00:00:00+00`.

Note that in the down migration we skip removal of `DEFAULT false` on
`unused_deployments.`
zorancv pushed a commit that referenced this pull request Aug 12, 2024
We migrate `synced` from a boolean value to a nullable `synced_at`
timestamp on `subgraphs.subgraph_deployment` and `unused_deployments`.
The default timestamp used in the migration is the unix epoch,
`1970-01-01 00:00:00+00`.

Note that in the down migration we skip removal of `DEFAULT false` on
`unused_deployments.`
zorancv pushed a commit that referenced this pull request Aug 12, 2024
We migrate `synced` from a boolean value to a nullable `synced_at`
timestamp on `subgraphs.subgraph_deployment` and `unused_deployments`.
The default timestamp used in the migration is the unix epoch,
`1970-01-01 00:00:00+00`.

Note that in the down migration we skip removal of `DEFAULT false` on
`unused_deployments.`
zorancv pushed a commit that referenced this pull request Aug 15, 2024
We migrate `synced` from a boolean value to a nullable `synced_at`
timestamp on `subgraphs.subgraph_deployment` and `unused_deployments`.
The default timestamp used in the migration is the unix epoch,
`1970-01-01 00:00:00+00`.

Note that in the down migration we skip removal of `DEFAULT false` on
`unused_deployments.`
encalypto added a commit that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants