SQLAlchemy alter column from DECIMAL to Float

后端 未结 0 1046
轻奢々
轻奢々 2020-12-16 02:56

I accidentally defined a column with Decimal instead of Float. I updated the value in models as below:

a = db.Column(db.Float(asdecimal=False))
b = db.Column(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题