From 2dc5b4b074d7b952e85c80aabc57739fc55734b0 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Tue, 10 Oct 2023 16:55:21 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Polish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lnschema_core/migrations/0022_migrate_to_integer_pks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnschema_core/migrations/0022_migrate_to_integer_pks.py b/lnschema_core/migrations/0022_migrate_to_integer_pks.py index 8dcc72ab..34e80e3c 100644 --- a/lnschema_core/migrations/0022_migrate_to_integer_pks.py +++ b/lnschema_core/migrations/0022_migrate_to_integer_pks.py @@ -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")