Skip to content

Use integer for availability instead of bool - #18964

Merged
DeepDiver1975 merged 1 commit into
masterfrom
availability-integer
Sep 15, 2015
Merged

DeepDiver1975 merged 1 commit into
masterfrom
availability-integer

Conversation

@RobinMcCorkell

Copy link
Copy Markdown
Contributor

Fixes #18420

Seems like our codebase isn't ready for booleans yet...

Please review @icewind1991 @PVince81 @LukasReschke @MorrisJobke @DeepDiver1975

@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@karlitschek

Copy link
Copy Markdown
Contributor

A DB schema change like that is critical. Needs careful resting on all supported databases

@RobinMcCorkell

Copy link
Copy Markdown
Contributor Author

@karlitschek The availability stuff is currently only in master, not 8.1. Only dev environments will be affected, and MariaDB/MySQL works just fine with the migration.

@karlitschek

Copy link
Copy Markdown
Contributor

Yes. And master will become 8.2 soon. So my statement is fully valid.
👎 Until we have answers.

@LukasReschke

Copy link
Copy Markdown
Contributor

Considering that the field is not in 8.1 and boolean is proven to create problems I'm in favour of this. We're using integers everywhere as booleans do not work properly.

@icewind1991

Copy link
Copy Markdown
Contributor

👍 "normal" installations will only get a new column like before

@PVince81

Copy link
Copy Markdown
Contributor

@karlitschek can you revisit your statement in the light of the additional information ?

The boolean field was added on master at some point (not 8.1) and we discovered on some envs (like mine) that the boolean field doesn't work properly.

@PVince81

Copy link
Copy Markdown
Contributor

but additional testing doesn't hurt, in case some people had the crazy idea of running pre-alpha code on their env and would have that boolean field already...

@DeepDiver1975

Copy link
Copy Markdown
Contributor

Considering that the field is not in 8.1 and boolean is proven to create problems I'm in favour of this. We're using integers everywhere as booleans do not work properly.

👍 from my side

@karlitschek

Copy link
Copy Markdown
Contributor

let's discuss tomorrow. sorry for being careful but this kind of changes broke in the past.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

rebased ...

@karlitschek

Copy link
Copy Markdown
Contributor

ok. discussed this with @DeepDiver1975 This is fine with me because this is a new field in master and not a type change.
So this shoudl be fine for normal users who upgrade from 8.1 to 8.2
And the developers have to deal with a maybe broken migration. :-)
👍

@PVince81

Copy link
Copy Markdown
Contributor

@DeepDiver1975 how come this PR is again out of date ? Does it mean we have to rebase PRs and merge directly after that ?

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@DeepDiver1975 how come this PR is again out of date ? Does it mean we have to rebase PRs and merge directly after that ?

I was fighting some hickups of jenkins last night ... we need to rebase ... I'll take care - THX

DeepDiver1975 added a commit that referenced this pull request Sep 15, 2015
Use integer for availability instead of bool
@DeepDiver1975
DeepDiver1975 merged commit e82a225 into master Sep 15, 2015
@DeepDiver1975
DeepDiver1975 deleted the availability-integer branch September 15, 2015 11:24
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception when updating storage availability

7 participants