diff --git a/sat/memory/migration/env.py b/sat/memory/migration/env.py index ef5a0942..01dcd958 100644 --- a/sat/memory/migration/env.py +++ b/sat/memory/migration/env.py @@ -50,11 +50,19 @@ def run_migrations_offline(): context.run_migrations() +def include_name(name, type_, parent_names): + if type_ == "table": + if name.startswith("pubsub_items_fts"): + return False + return True + + def do_run_migrations(connection): context.configure( connection=connection, target_metadata=target_metadata, - render_as_batch=True + render_as_batch=True, + include_name=include_name ) with context.begin_transaction():