Top "Alembic" questions

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

Dropping foreign keys in Alembic downgrade?

So I have created a number of tables in my database using an Alembic migration, each has an index and …

python sqlalchemy alembic
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
Sqlite lack of ALTER support, Alembic migration failing because of this. Solutions?

I am developing a small registration application for a friend zumba class, using Flask, SQLAlchemy and Flask-migrate(alembic) to deal …

sqlite sqlalchemy alembic
Alembic - sqlalchemy does not detect existing tables

I've asked a question (Alembic - sqlalchemy initial migration) on how to detect tables by using target_metadata = Base.metadata …

python sqlalchemy alembic
alembic create_table, check if table exists

I have an alembic upgrade script that creates a table, however I don't want it to create the table if …

python database-migration alembic
Using the SQLAlchemy ORM inside an Alembic migration: how do I?

I currently have a column that contains HTML markup. Inside that markup, there is a timestamp that I want to …

python sqlalchemy alembic
Request a simple alembic working example for Auto Generating Migrations

I installed alembic 0.3.4, sqlalchemy, SQLite version 3.7.4, and upgraded SQLAlchemy 0.6.4 to SQLAlchemy 0.7 or greater from my ubuntu. I followed the instructions …

python orm sqlalchemy data-migration alembic
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
Alembic migration stuck with postgresql?

I wrote a migration script which works fine on sqlite, but if i try to apply the same to postgres …

python postgresql alembic
Adding primary key to existing MySQL table in alembic

I am trying to add an 'id' primary key column to an already existing MySQL table using alembic. I tried …

python sqlalchemy alembic