Repository navigation
bool data type is not mapped to boolean for sqlite - #17674
DeepDiver1975 wants to merge 1 commit into
Conversation
|
A new inspection was created. |
|
How do you want me to test this other than running the unit tests? |
|
@rullzer Install with master on sqlite and add a table with such a column ;) Then upgrade and check if it is now correctly boolean ;) |
|
Can we have a test? 🙊 🏃 |
Well - this happens in case there is a table in the db which was created outside of the scope ownCloud. Do too sure if we should test something like this. |
|
I can't believe we never used bool in core 😮 |
|
Tested as follows:
Tested with SQLite and MySQL 👍 |
Yes. We never used |
|
If I change the test table of @PVince81 to @DeepDiver1975 Can you have a look. I get following message: |
|
@DeepDiver1975 This is still broken. Please fix :) |
|
Yeah - one day .... |
|
Well, we now use booleans in core. Perhaps it's a good time to brush off the dust on this PR? 😄 |
|
@DeepDiver1975 any update ? |
5690771 to
0ba937d
Compare
|
Okay, guys - you are getting this wrong I guess - the intention of this pr is not to introduce bool as valid type in our xml db structure. This wil 'only' fix the case that some existing table in the sqlite db is using a bool columns and the upgrade process will not fall apart. |
|
@DeepDiver1975 So is bool a valid type for our DB schema at all? Doctrine happily eats it, but we've found these bugs with it... |
No idea 🙊 |
|
(D)efer, (K)ill, (R)evive ? |
fixes #17671