Skip to content

Commit 8d3877f

Browse files
committed
hub/delete-projects: also blobs table
1 parent bc6be27 commit 8d3877f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/packages/database/postgres/delete-projects.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ async function delete_associated_project_data(
247247
"file_access_log",
248248
"jupyter_api_log",
249249
"openai_chatgpt_log",
250+
"blobs",
250251
] as const;
251252

252253
for (const table of tables) {
@@ -256,7 +257,7 @@ async function delete_associated_project_data(
256257
value: project_id,
257258
});
258259
total += rowsDeleted;
259-
L2(`deleted ${table} ${rowsDeleted} entries`);
260+
L2(`deleted in ${table}: ${rowsDeleted} entries`);
260261
}
261262

262263
// these tables are different, i.e. another id, or the field to check the project_id value against is called differently
@@ -268,7 +269,7 @@ async function delete_associated_project_data(
268269
value: project_id,
269270
});
270271
total += rowsDeleted;
271-
L2(`deleted copy_paths/${field} ${rowsDeleted} entries`);
272+
L2(`deleted copy_paths/${field}: ${rowsDeleted} entries`);
272273
}
273274

274275
{
@@ -279,7 +280,7 @@ async function delete_associated_project_data(
279280
value: project_id,
280281
});
281282
total += rowsDeleted;
282-
L2(`deleted ${rowsDeleted} listings`);
283+
L2(`deleted in listings: ${rowsDeleted} entries`);
283284
}
284285

285286
{
@@ -290,7 +291,7 @@ async function delete_associated_project_data(
290291
id: "token",
291292
});
292293
total += rowsDeleted;
293-
L2(`deleted ${rowsDeleted} entries`);
294+
L2(`deleted in project_invite_tokens: ${rowsDeleted} entries`);
294295
}
295296

296297
return total;

0 commit comments

Comments
 (0)