We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16cf3a5 commit 90aae5fCopy full SHA for 90aae5f
backend/alembic/versions/c9e2cd766c29_add_s3_file_store_table.py
@@ -232,12 +232,13 @@ def _migrate_files_to_external_storage() -> None:
232
files_to_migrate = [row[0] for row in result.fetchall()]
233
total_files = len(files_to_migrate)
234
235
- external_store.initialize()
236
-
237
if total_files == 0:
238
print("No files found in PostgreSQL storage to migrate.")
239
return
240
+ # might need to move this above the if statement when creating a new multi-tenant
+ # system. VERY extreme edge case.
241
+ external_store.initialize()
242
print(f"Found {total_files} files to migrate from PostgreSQL to external storage.")
243
244
_set_tenant_contextvar(session)
0 commit comments