def get_all_tables(op):
    """
    Function to list all the tables in the database from a migration
    """
    inspector = SQLAInspect(op.get_bind())
    tables = inspector.get_table_names()
    return tables

    Function to list all the tables in the database from a migration
    
CTFd/plugins/migrations.py