Skip to content
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

Boolean Support( mariadb ) #437

Open
kakarot-dev opened this issue Jan 8, 2022 · 3 comments
Open

Boolean Support( mariadb ) #437

kakarot-dev opened this issue Jan 8, 2022 · 3 comments

Comments

@kakarot-dev
Copy link

sea-orm-cli is generating a type wrongly. When the type should be boolean, it generates the entites as the type i8
That is expected as apparently mariadb stores boolean as integer values inside the database. I wanted to ask if this bug can be fixed, and the cli can produce booleans correctly

Sql statement

 ADD COLUMN `reserved` BOOLEAN NULL
@billy1624
Copy link
Member

Hey @kakarot-dev, thanks!!

Can I also know what version of mariadb you're using?

@kakarot-dev
Copy link
Author

Server version: 10.6.5-MariaDB-1:10.6.5+maria~focal

@billy1624 billy1624 moved this to Next Up in SeaQL Dev Tracker Jul 11, 2022
@billy1624 billy1624 moved this from Next Up to Triage in SeaQL Dev Tracker Jan 13, 2023
@tyt2y3
Copy link
Member

tyt2y3 commented Feb 21, 2023

There might be some way that SeaSchema can soundly detect a BOOLEAN and map it as such

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

3 participants