Answers for "flask_migrate version"

0

flask migrate install

pip install Flask-Migrate
Posted by: Guest on February-08-2021
0

flask migrate

from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate

app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'

db = SQLAlchemy(app)
migrate = Migrate(app, db)

class User(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(128))
Posted by: Guest on February-08-2021

Code answers related to "flask_migrate version"

Python Answers by Framework

Browse Popular Code Answers by Language