Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

fix hidden field in devices table for older sqlite#6313

Merged
uhoreg merged 2 commits intodevelopfrom
uhoreg/cross_signing_fix_sqlite_schema
Nov 1, 2019
Merged

fix hidden field in devices table for older sqlite#6313
uhoreg merged 2 commits intodevelopfrom
uhoreg/cross_signing_fix_sqlite_schema

Conversation

@uhoreg
Copy link
Copy Markdown
Member

@uhoreg uhoreg commented Nov 1, 2019

fixes #6302

I've tested sqlite 3.27.2 (Debian buster) and sqlite 3.16.2 (Debian stretch), both doing upgrades of v1.4.1 -> v1.5.0 -> this branch, as well as v1.4.1 -> this branch. All the tests resulted in the correct behaviour of the hidden field set to 0 instead of 'FALSE'.

I was unable to figure out a way to avoid doing the db upgrade step from 56/hidden_devices.sql when going v1.4.1 -> this branch. Anything that I thought of would break something in sqlite and/or postgresql. So we're stuck with doing 56/hidden_devices.sql followed immediately by 56/hidden_devices_fix.sql.sqlite for sqlite database, which has to copy the whole devices table.

@uhoreg uhoreg requested a review from a team November 1, 2019 03:35
Copy link
Copy Markdown
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

@uhoreg uhoreg merged commit fa7e52c into develop Nov 1, 2019
babolivier pushed a commit that referenced this pull request Sep 1, 2021
…ite_schema

* commit 'fa7e52caf':
  add changelog
  fix hidden field in devices table for older sqlite
@DMRobertson DMRobertson deleted the uhoreg/cross_signing_fix_sqlite_schema branch June 28, 2022 11:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants