flask-migrate doesn't work When I add models with ForeignKey
class User(db.Model): __tablename__ = 'user' id = db.Column(db.Integer, primary_key=True) email = db.Column(db.String(64), unique=True) # 是不是应该加密下,不能明文存储?应该设置多长的空间? 14.7.18 4:22 by lee password = db.Column(db.String(100)) nickname = db.Column(db.String(64)) school = db.Column(db.String(20)) sex = db.Column(db.String(5)) status = db.Column(db.String(10)) grade = db.Column(db.String(18)) I have a database remains. Then I add model to models.py: class PubSquare(db.Model): id = db.Column(db.Integer, primary_key=True) author_id = db.Column(db.Integer, db.ForeignKey('user.id')) author = db