Closed khatchad closed 3 years ago
@tatianacv - in the database, is it possible to change the type of the column "is_func_fix" in the bug_fixes table from "bit" to "tinyint"? I'm getting a "command denied to user" error. Here's the SQL command: ALTER TABLE bug_fixes MODIFY COLUMN is_func_fix TINYINT
I have fixed this in our production database. This happened because of a schema mistake there and that DB was imported here. @tatianacv will fix in the dev database.
For the boolean columns, how about using ticks? For example, heavy_check_mark could be for true (Unicode hex code 2714) and heavy_multiplication_x could be for false (2716)?
I have fixed this in our production database. This happened because of a schema mistake there and that DB was imported here. @tatianacv will fix in the dev database.
I have updated in the dev database.
Thank you for fixing the db.
Should we change this one to Booleanfield?
Should we change this one to Booleanfield?
Tiny int(1) is boolean, we saw that when we changed the from the production database.
I think this was temporarily assigned to me so I could fix in dev, this should be assigned back to Manal?
There is a way in django to keep the integer value stored in the database and display a human-readable value such as ✘ or ✔. I tried this mapping of values and it worked while keeping the IntegerField type. I didn't commit any changes but if ok will update the code.
@mZneit will try the Booleanfield
.
https://fathomless-inlet-57767.herokuapp.com/ponder/bug_fixes/
b'\x00' -> false b'\x01' -> true