Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
πŸ’„ Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Oct 10, 2023
1 parent 4901722 commit 2dc5b4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lnschema_core/migrations/0022_migrate_to_integer_pks.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,6 @@ def populate_tmp_column_foreign_keys(orm):
registry = getattr(lnschema_core_models, model_name)
table_name = registry._meta.db_table
df = pd.read_sql_table(table_name, ln_setup.settings.instance.db)
directory = Path(f"./lamindb_export/{ln_setup.settings.identifier}/")
directory = Path(f"./lamindb_export/{ln_setup.settings.instance.identifier}/")
directory.mkdir(parents=True, exist_ok=True)
df.to_parquet(directory / table_name)
df.to_parquet(directory / table_name / ".parquet")

0 comments on commit 2dc5b4b

Please sign in to comment.