python
flask -- 기존 db table 변경하기
자유프로그램
2018. 7. 29. 17:27
반응형
flask -- 기존 db table 변경하기
환경 ; python 3.6
참고 ; https://github.com/miguelgrinberg/Flask-Migrate
https://flask-migrate.readthedocs.io/en/latest/
문제점 ; flask-sqlalchemy 사용하여 처음에 db table 생성하면, 추후에 column 을 추가하는 작업을 할수 없다.
해결책 ; flask-migrate 사용하면 됨.
Then each time the database models change repeat the migrate and upgrade commands.
반응형