Top "Alembic" questions

Alembic is a lightweight database migration tool for usage with the SQLAlchemy Database Toolkit for Python.

Target database is not up to date

I'd like to make a migration for a Flask app. I am using Alembic. However, I receive the following error. …

python flask sqlalchemy alembic
sqlalchemy.exc.ArgumentError: Can't load plugin: sqlalchemy.dialects:driver

I am trying to run alembic migration and when I run alembic revision --autogenerate -m "Added initial tables" It fails …

python sqlalchemy psycopg2 alembic
How do I execute inserts and updates in an Alembic upgrade script?

I need to alter data during an Alembic upgrade. I currently have a 'players' table in a first revision: def …

python sqlalchemy alembic
alembic util command error can't find identifier

I'm trying to use alembic to handle local migrations on my project. It worked the first time, but then I …

postgresql flask-sqlalchemy alembic sqlalchemy-migrate
sqlalchemy : executing raw sql with parameter bindings

I'm trying to run this simple raw sql statement with parameters with SQLALchemy (within an alembic script) : from alembic import …

python sqlalchemy database-migration flask-sqlalchemy alembic
Altering an Enum field using Alembic

How can I add an element to an Enum field in an alembic migration when using a version of PostgreSQL …

python postgresql sqlalchemy alembic
Undo last Alembic migration

I created a migration with alembic revision --autogenerate, applied it to my development database with alembic upgrade head, and then …

python sqlalchemy alembic
Creating seed data in a flask-migrate or alembic migration

How can I insert some seed data in my first migration? If the migration is not the best place for …

python flask flask-sqlalchemy alembic flask-migrate
Can't migrate or upgrade database with Flask-Migrate (Alembic)

I've been using Flask-Migrate (Alembic) for updating my database. I updated my models.py file however I made an error. …

python flask sqlalchemy alembic flask-migrate
alembic revision - multiple heads (due branching) error

I've got an application and I wanted to create a new migration for it today. When I run $ alembic revision …

python git alembic