Skip to content

Commit

Permalink
this is after all the point of transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Feb 3, 2025
1 parent 72fdbea commit f541dcf
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions robot-server/robot_server/persistence/_migrations/v9_to_v10.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,9 @@ def migrate(self, source_dir: Path, dest_dir: Path) -> None:
schema_10.labware_offset_location_sequence_components_table.create(
transaction
)

# Then we upmigrate the data to the new tables
with sql_engine_ctx(
dest_dir / DB_FILE
) as engine, engine.begin() as transaction:
# Then we upmigrate the data to the new tables
_upmigrate_stored_offsets(transaction)

# Then, we drop the table with we don't care about anymore
with sql_engine_ctx(
dest_dir / DB_FILE
) as engine, engine.begin() as transaction:
# Then, we drop the table with we don't care about anymore
schema_9.labware_offset_table.drop(transaction)


Expand Down

0 comments on commit f541dcf

Please sign in to comment.