diff options
author | Teddy <[email protected]> | 2013-09-02 12:37:07 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-09-02 12:37:07 +0800 |
commit | d017fb4ca8c9a5d0b6c5533f2549d13aa224e623 (patch) | |
tree | 668fcfe3ad59faca431ae9d13590054316ae6548 | |
parent | 25ff8426f51ee569b35fcb7d014a9f96d8a9d6a3 (diff) |
...
-rw-r--r-- | server/piztor/model.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/piztor/model.py b/server/piztor/model.py index cade3ea..648e2e7 100644 --- a/server/piztor/model.py +++ b/server/piztor/model.py @@ -1,6 +1,6 @@ from sqlalchemy import Table, Column -from sqlalchemy import Integer, String, Float, ForeignKey, Boolean -from sqlalchemy.dialects.mysql import BLOB, TINYINT +from sqlalchemy import Integer, String, ForeignKey, Boolean +from sqlalchemy.dialects.mysql import BLOB, TINYINT, DOUBLE from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, backref from exc import * @@ -82,8 +82,8 @@ class LocationInfo(Base): uid = Column(Integer, ForeignKey(_TableName.UserModel + '.id'), primary_key = True) - lat = Column(Float(precesion = 64), nullable = False) - lng = Column(Float(precesion = 64), nullable = False) + lat = Column(DOUBLE, nullable = False) + lng = Column(DOUBLE, nullable = False) user = relationship("UserModel", uselist = False, backref = backref("location", uselist = False, cascade = "all, delete-orphan")) |