Browse Source

更新column表结构 添加一个column:order

master
邓淳远 4 years ago
parent
commit
df47eaf3fe
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      APP/view/model.py

+ 2
- 0
APP/view/model.py View File

@ -21,6 +21,7 @@ class Collection(Base):
tag = Column(String(255))
phonenum = Column(String(255))
like = Column(Integer)
order =Column(Integer)
def __init__(self, id=None, name=None, tag=None, phonenum=None, like=0):
self.id = id
@ -28,6 +29,7 @@ class Collection(Base):
self.tag = tag
self.phonenum = phonenum
self.like = like
self.order = id
class Block(Base):

Loading…
Cancel
Save