Rewrite: BigIntegerField for Discord Snowflake IDs #49
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Required for #47
This may be a breaking change.
Currently using
CharField
for Discord Snowflake IDs due to an sqlite bug with thePositiveBigIntegerField
that rounds the IDs down when storing.Try out the
BigIntegerField
and check against sqlite for issues, it makes more sense to use than theCharField
.It's not an sqlite bug, but an issue with the way js and django rest framework's json parser handles big integers.
I've implemented a custom json parser that converts large integers to strings.