支持供应商简称维护和订单PDF下载命名
This commit is contained in:
+2
-1
@@ -81,6 +81,7 @@ class Supplier(Base):
|
||||
id = Column(Integer, primary_key=True)
|
||||
code = Column(String(50))
|
||||
name = Column(String(200), nullable=False)
|
||||
short_name = Column(String(60), nullable=False, default='')
|
||||
contact = Column(String(50))
|
||||
phone = Column(String(50))
|
||||
tax_no = Column(String(80))
|
||||
@@ -277,5 +278,5 @@ def init_db(db_path):
|
||||
Base.metadata.create_all(engine)
|
||||
if not existed:
|
||||
with engine.connect() as con:
|
||||
con.exec_driver_sql('PRAGMA user_version=4')
|
||||
con.exec_driver_sql('PRAGMA user_version=5')
|
||||
return engine, sessionmaker(bind=engine)
|
||||
|
||||
Reference in New Issue
Block a user