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

Gatewayd migrations #4327

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Gatewayd migrations #4327

merged 1 commit into from
Feb 22, 2024

Conversation

m1sterc001guy
Copy link
Contributor

Builds on #4282

Adds database snapshots for gatewayd and database migrations.

#[repr(u8)]
#[derive(Clone, EnumIter, Debug)]
pub enum DbKeyPrefix {
FederationConfig = 0x04,
FederationRegistration = 0x05,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This isn't used anywhere in the codebase and hasn't for sometime. I think it should be safe to remove.

Copy link
Contributor

Choose a reason for hiding this comment

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

Was the key present in 0.2? If so I'd want a migration that deletes old data with that key prefix. I wouldn't bother to check probably and just add a migration, should be easy enough in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this key was not preset in 0.2

Copy link
Contributor

Choose a reason for hiding this comment

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

@benthecarman I think you guys were running master in some cases, be advised that this might make the gateway blow up in the future. We only aim to achieve compatibility between released versions.

Copy link
Contributor

Choose a reason for hiding this comment

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

We're running 0.2.2, thanks for the call out though

Copy link
Contributor

Choose a reason for hiding this comment

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

Great! Then I just misremembered :)

@m1sterc001guy m1sterc001guy changed the title [DRAFT]: Gatewayd migrations Gatewayd migrations Feb 22, 2024
@m1sterc001guy m1sterc001guy marked this pull request as ready for review February 22, 2024 18:03
@m1sterc001guy m1sterc001guy requested review from a team as code owners February 22, 2024 18:03
#[repr(u8)]
#[derive(Clone, EnumIter, Debug)]
pub enum DbKeyPrefix {
FederationConfig = 0x04,
FederationRegistration = 0x05,
Copy link
Contributor

Choose a reason for hiding this comment

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

Was the key present in 0.2? If so I'd want a migration that deletes old data with that key prefix. I wouldn't bother to check probably and just add a migration, should be easy enough in this case.

@dpc dpc added this pull request to the merge queue Feb 22, 2024
Merged via the queue into fedimint:master with commit 9f4926c Feb 22, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants