-
Notifications
You must be signed in to change notification settings - Fork 210
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
Gatewayd migrations #4327
Conversation
2309f43
to
d60fce6
Compare
#[repr(u8)] | ||
#[derive(Clone, EnumIter, Debug)] | ||
pub enum DbKeyPrefix { | ||
FederationConfig = 0x04, | ||
FederationRegistration = 0x05, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
#[repr(u8)] | ||
#[derive(Clone, EnumIter, Debug)] | ||
pub enum DbKeyPrefix { | ||
FederationConfig = 0x04, | ||
FederationRegistration = 0x05, |
There was a problem hiding this comment.
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.
Builds on #4282
Adds database snapshots for gatewayd and database migrations.