menggunakan flask-migrate

--

from flask_migrate import Migratedef create_app(config_class=Config):
app = Flask(__name__)
...
Migrate(app, db)
...
return app

Go to terminal type :

flask db init flask db migrate -m 'some comments'flask db upgrade

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Fredy Yudiawan
Fredy Yudiawan

Written by Fredy Yudiawan

Nature Photographer by day, software developer by night. https://www.linkedin.com/in/ftansari/

No responses yet

Write a response