Cannot complete Flask-Migration

后端 未结 8 2139
刺人心
刺人心 2021-02-02 13:27

I\'ve setup a local Postgres DB with SQLAlchemy and cannot commit my first entry. I keep on getting this error...

ProgrammingError: (ProgrammingError) relation          


        
8条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 13:59

    flask-migrate will create a table named "alembic_version" in your database.
    so you should drop this table and delete migrations folder in your project.
    and then use $ python app.py db init again...
    I think $ python app.py db migrate will work fine.

提交回复
热议问题