qcodes/dataset/sqlite/db_upgrades/__init__.py
def perform_db_upgrade_7_to_8(conn: ConnectionPlus) -> None:
    """
    Perform the upgrade from version 7 to version 8.

    Add a new column to store the dataset's parents to the runs table.
    """
    with atomic(conn) as conn:
        pbar = tqdm(range(1), file=sys.stdout)
        pbar.set_description("Upgrading database; v7 -> v8")
        # iterate through the pbar for the sake of the side effect; it
        # prints that the database is being upgraded
        for _ in pbar:
            insert_column(conn, 'runs', 'parent_datasets', 'TEXT')

    Perform the upgrade from version 7 to version 8.

    Add a new column to store the dataset's parents to the runs table.
    
Perform the upgrade from version 7 to version 8.
Add a new column to store the dataset's parents to the runs table.
Perform the upgrade from version 7 to version 8 . Add a new column to store the dataset ' s parents to the runs table .
def perform_db_upgrade_7_to_8(conn: ConnectionPlus) -> None:
    with atomic(conn) as conn:
        pbar = tqdm(range(1), file=sys.stdout)
        pbar.set_description("Upgrading database; v7 -> v8")
        for _ in pbar:
            insert_column(conn, 'runs', 'parent_datasets', 'TEXT')
def perform_db_upgrade_7_to_8 ( conn : ConnectionPlus ) -> None : with atomic ( conn ) as conn : pbar = tqdm ( range ( 1 ) , file = sys . stdout ) pbar . set_description ( "Upgrading database; v7 -> v8" ) for _ in pbar : insert_column ( conn , 'runs' , 'parent_datasets' , 'TEXT' )
Perform the upgrade from version 7 to version 8.
Perform the upgrade from version 7 to version 8 .
"""
    Perform the upgrade from version 7 to version 8.

    Add a new column to store the dataset's parents to the runs table.
    """ # iterate through the pbar for the sake of the side effect; it # prints that the database is being upgraded
conn
ConnectionPlus