Skip to content
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

Chore: signerdb schema versions #4965

Merged
merged 1 commit into from
Jul 15, 2024
Merged

Conversation

kantai
Copy link
Member

@kantai kantai commented Jul 12, 2024

Description

This adds schema versioning and migration logic to the signerdb sqlite database #4963

The implementation of this is pretty similar to the migration logic used in other dbs. One difference is that this drops tables if they were previously present. Because signers have not needed to use this DB yet in production, this is safe, and due to the previously lacking migration logic this is necessary anyways. The "drop" command just eliminates the need for someone to clear the database themselves.

@kantai kantai requested review from a team as code owners July 12, 2024 19:52
@kantai kantai changed the base branch from master to develop July 12, 2024 19:52
@kantai kantai requested a review from a team as a code owner July 12, 2024 19:52
@kantai kantai force-pushed the chore/signerdb-schema-versions branch from add096a to 0a73ad0 Compare July 15, 2024 14:44
@saralab saralab requested review from obycode and wileyj July 15, 2024 15:03
Copy link
Contributor

@wileyj wileyj left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

lgtm

@kantai kantai added this pull request to the merge queue Jul 15, 2024
Merged via the queue into develop with commit 2e0c984 Jul 15, 2024
1 check passed
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants