About 1,370,000 results
Open links in new tab
  1. python - Using Alembic API from inside application code - Stack …

    Jul 8, 2014 · Here's what I've learned after hooking up my software to alembic: Is there a way to call alembic from inside my Python code? Yes. As of this writing the main entry point for …

  2. python - Alembic: "Can't locate revision" error after deleting ...

    Jul 1, 2025 · INFO [alembic.runtime.migration] Context impl SQLiteImpl. INFO [alembic.runtime.migration] Will assume non-transactional DDL. ERROR …

  3. python - Alembic Autogenerate Incorrectly Trying to Drop alembic ...

    Mar 26, 2025 · Problem I'm facing a strange issue with Alembic's autogenerate command when setting up the initial database migration for a PostgreSQL database with a public schema. …

  4. python - Altering an Enum field using Alembic - Stack Overflow

    May 29, 2017 · How can I add an element to an Enum field in an alembic migration when using a version of PostgreSQL older than 9.1 (which adds the ALTER TYPE for enums)? This SO …

  5. python - How to use Enum with SQLAlchemy and Alembic? - Stack …

    Nov 9, 2017 · 8 This and related StackOverflow threads resort to PostgreSQL dialect-specific typing. However, generic support may be easily achieved in an Alembic migration as follows. …

  6. python - Adding column dynamically to an existing table using ...

    2 I want to add columns to a table in my database dynamically since I don't want to have to specify all columns when I set up the table in the SQLalchemy class In order to solve this I am …

  7. python - How to autogenerate and apply migrations with alembic …

    Jul 2, 2021 · How to autogenerate and apply migrations with alembic when the database runs in a container? Asked 4 years, 5 months ago Modified 22 days ago Viewed 26k times

  8. How to import the own model into myproject/alembic/env.py?

    Aug 16, 2015 · I want to use alembic revision --autogenerate with my own model classes. Because of that I need to import them in myproject/alembic/env.py as described in the docs.

  9. python - Undo last Alembic migration - Stack Overflow

    Jan 13, 2018 · I created a migration with alembic revision --autogenerate, applied it to my development database with alembic upgrade head, and then realised it wasn't quite what I …

  10. python - Creating seed data in a flask-migrate or alembic …

    MarkHildreth has supplied an excellent explanation of how alembic can handle this. However, the OP was specifically about how to modify a flask-migration migration script.