code: def upgrade():
      if not table_has_column("tables", "always_filter_main_dttm"):
          op.add_column(
              "tables",
              sa.Column(
                  "always_filter_main_dttm",
                  sa.Boolean(),
                  nullable=True,
                  default=False,
                  server_default=sa.false(),
              ),
          )
  
          bind = op.get_bind()
          session = db.Session(bind=bind)
  
          for table in paginated_update(session.query(SqlaTable)):
              table.always_filter_main_dttm = False
  
file_path: superset/superset/migrations/versions/2023-09-06_13-18_317970b4400c_added_time_secondary_column_to_.py
imports: import sqlalchemy
  from alembic import op
  from sqlalchemy.ext.declarative import declarative_base
  from sqlalchemy.orm import Session
  from superset import db
  from superset.migrations.shared.utils import paginated_update, table_has_column
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types