Skip to content

Instantly share code, notes, and snippets.

@antnieszka
antnieszka / Exclude_tables.md
Created August 18, 2020 12:09 — forked from utek/Exclude_tables.md
Define ignored tables in alembic.ini

Add this in your ini file:

[alembic:exclude]
tables = spatial_ref_sys

In env.py:

def exclude_tables_from_config(config_):
    tables_ = config_.get("tables", None)

if tables_ is not None: