squawk icon indicating copy to clipboard operation
squawk copied to clipboard

allow specific tables to be ignored

Open benedikt-bartscher opened this issue 4 months ago • 2 comments

I want to exclude specific tables like alembic_version

benedikt-bartscher avatar Aug 24 '25 12:08 benedikt-bartscher

Can you give a small example of what you're seeing? Wondering if we can make something more generic

sbdchd avatar Aug 24 '25 20:08 sbdchd

Alembic automatically creates this:

CREATE TABLE alembic_version (
    version_num VARCHAR(32) NOT NULL, 
    CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
);

I want to ignore the table alembic_version. I can't ignore via inline comments, because the sql is automatically created by alembic. I could also split it into a separate migration file, however that would require modifying (split) existing migrations of all my projects. The easiest way which came to my mind was ignoring the table name. If you have a better idea, I am open for suggestions

benedikt-bartscher avatar Aug 25 '25 18:08 benedikt-bartscher