-
Notifications
You must be signed in to change notification settings - Fork 893
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
Browser no longer crashes when upgrading from a v3 to a v5+ database #2122
Conversation
074884e
to
ce55725
Compare
Nice find. I think that we need to think more future proof, so we need to move all create/index functions inside upgrade process functions. This way for example if we delete activity_info functions older versions still have upgrade path. |
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.
let's add create scripts into migration functions, this way we are future proof
0104000
to
def6fa1
Compare
Create scripts have been moved into migration functions. Also some unrelated lint fixes.
def6fa1
to
3cad7f8
Compare
6428dfe
to
d9cef4b
Compare
simplified conditional Updated migrations to use own version sql lint fixes Remove original fix. Updated db var naming lint
d9cef4b
to
8ced99b
Compare
Fixes brave/brave-browser#3907
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests && npm run test-security
) onnpm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
publisher_info_db
(use attached from issue or attached v2 below) to profile/defaultAlternatively:
Reviewer Checklist:
publisher_info_db.remove_zip_ext.zip