为了账号安全,请及时绑定邮箱和手机立即绑定

python中鱼书flask项目中的问题

/ 猿问

python中鱼书flask项目中的问题

838671522 2018-11-07 11:20:57

sqlalchemy.exc.InternalError: (cymysql.err.InternalError) (1054, "Unknown column 'user.create_time' in 'field list'") [SQL: 'SELECT user.password AS user_password, user.create_time AS user_create_time, user.status AS user_status, user.id AS user_id, user.nickname AS user_nickname, user.phone_number AS user_phone_number, user.email AS user_email, user.confirmed AS user_confirmed,

user.beans AS user_beans, user.send_counter AS user_send_counter, user.receive_counter AS user_receive_counter, user.wx_open_id AS user_wx_open_id, user.wx_name AS user_wx_name \nFROM user \nWHERE user.email = %s \n LIMIT %s'] [parameters: ('101010@qq.com', 1)] (Background on this error at: http://sqlalche.me/e/2j85)

测试了几次  只要增加了create_time就会报错

求解决办法,谢谢


查看完整描述

1 回答

?
卡卡爱漂流

你好,建议删除所有表重新生成

查看完整回答
反对 回复 2018-11-26

添加回答

回复

举报

0/150
提交
取消
意见反馈 邀请有奖 帮助中心 APP下载
官方微信