Top "Flask-migrate" questions

Use this tag for questions related to the Flask extension flask-migrate, this extension implements SQLAlchemy database migrations.

How do I split Flask models out of app.py without passing db object all over?

I'd like to use Flask-Migrate and am looking at their example: from flask import Flask from flask.ext.sqlalchemy import …

python flask flask-migrate
Flask-Migrate sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column

I am using Flask-Migrate in my application, with the following models: listpull/models.py from datetime import datetime from listpull …

sqlalchemy flask flask-sqlalchemy sqlalchemy-migrate flask-migrate
Flask-Migrate No Changes Detected to Schema on first migration

I'm using Flask with Flask-SQLAlchemy and Flask-Migrate to create an application, however when I try to create a migration nothing …

python python-3.x flask flask-sqlalchemy flask-migrate
sqlalchemy postgresql enum does not create type on db migrate

I develop a web-app using Flask under Python3. I have a problem with postgresql enum type on db migrate/upgrade. …

flask sqlalchemy flask-sqlalchemy flask-migrate sqlalchemy-migrate
How do you add migrate an existing database with alembic/flask-migrate if you did not start off with it?

This is the chain of events that has and is happening Day 0: I developed and deployed my app Day 1: I …

alembic flask-migrate
Flask-Migrate command 'flask db init' can't find app file

Firstly, I'm following the Python Flask tutorial posted here: https://scotch.io/tutorials/build-a-crud-web-app-with-python-and-flask-part-one. Everything was working smoothly up to …

python flask flask-sqlalchemy flask-migrate
can not rename column using alter_column

I have an existing project that is based on pylons and sqlalchemy. I did not use alembic or any wrapper …

alembic flask-migrate