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

Fix migration changing the the app settings #1442

Merged
merged 1 commit into from Mar 11, 2024
Merged

Conversation

MV-GH
Copy link
Collaborator

@MV-GH MV-GH commented Mar 10, 2024

This is really annoying, the order of these column definitions is very important.

This caused half the settings to be switched with two columns lower.

This fixes that

It is actually miracle that this didnt cause any crashes (well if it did we would have found it earlier). I don't see how to add a test for this to prevent this from happening again.

We will have to be very careful with doing big changes to appSettings again

Fixes #1440

I have verified this with a pre 30 db version app and 31 has the exact same settings.

@MV-GH MV-GH requested a review from dessalines as a code owner March 10, 2024 13:38
Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Yup it is, android makes DB migrations an absolute nightmare.

I also tested this and it works.

@dessalines dessalines merged commit 686ef17 into LemmyNet:main Mar 11, 2024
1 check 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.

Screenshots prevented by security settings
2 participants