Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLAlchemy - proper way to create unsigned BigInteger

I'm getting a warning now that passing arguments to BigInteger is deprecated. However, I'm not sure of any other way to declare the value as unsigned. I'm storing the result of MySQL's uuid_short() function which is an unsigned 64-bit integer which will likely cause an overflow if the column is not declared as UNSIGNED.

What's the proper way of handling this issue now?

like image 927
Tim Tisdall Avatar asked Dec 20 '22 22:12

Tim Tisdall


1 Answers

from https://groups.google.com/forum/#!topic/sqlalchemy/L3otXINq6Ts :

you can use from sqlalchemy.dialects.mysql import BIGINT

like image 96
jbub Avatar answered Dec 28 '22 09:12

jbub