Added new subclass for Integerfield for bigints data value

This commit is contained in:
Antonio de la Rosa 2016-06-22 05:26:46 +02:00
parent 98e9820161
commit dd3b553db0

View file

@ -31,6 +31,13 @@ class IntegerField(PhangoField):
return 'INT('+str(self.size)+') NOT NULL DEFAULT "0"'
class BigIntegerField(IntegerField):
def get_type_sql(self):
return 'BIGINT('+str(self.size)+') NOT NULL DEFAULT "0"'
class FloatField(PhangoField):
def __init__(self, name, size=11, required=False):