def METHOD_NAME(inspector, new_table_name, table):
    """Rename primary key.From org_pkey to orgs_pkey"""
    pk_name = inspector.get_pk_constraint(table).get('name')
    new_pk_name = pk_name.replace(table, new_table_name, 1)
    if pk_name != new_pk_name:
        op.execute(f'ALTER index {pk_name} RENAME TO {new_pk_name}')