Added new subclass for Integerfield for bigints data value
This commit is contained in:
parent
98e9820161
commit
dd3b553db0
1 changed files with 7 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue