Update SQLite backend Boolean type from int to bool#400
Conversation
- Add test for bool column for table creation in SQLite - Add test for inserting boolean values in SQLite
Renamed "bool" to "boolean" Co-authored-by: Billy Chan <[email protected]>
|
Context: Hey @anshul#9329, if you look at the rules of type affinity The column defined with I prefer
|
|
@billy1624 Thanks you for explaining. I'd totally missed this part of the table. I've already renamed it to |
I think it's all good! After this PR is being merged, we should mention this bareaking change in the CHANGELOG. This PR should fix the original issue - #375 - once we bumped the SeaORM version on SeaSchema side. |
billy1624
left a comment
There was a problem hiding this comment.
Thanks again for contributing!! @anshulxyz
|
@billy1624 should we make fix in sea-schema? |
According to my understanding, it will 'just work' with SeaSchema. Am I right? |
Hey @tyt2y3, correct! |


As mentioned in #375 the SQLite engine already supports boolean type implicitly. More details are provided in the issue's comments about this.
PR Info
Adds
Breaking Changes
boolean, until now we were usingintthere. So in case, someone makes an update, and they provide and int where we expect a bool, it might break some code. This still needs to be checked.i32toboolean.Changes