diff --git a/src/packages/database/postgres/delete-projects.ts b/src/packages/database/postgres/delete-projects.ts index 9620c337f2..378a5734e9 100644 --- a/src/packages/database/postgres/delete-projects.ts +++ b/src/packages/database/postgres/delete-projects.ts @@ -181,9 +181,11 @@ export async function cleanup_old_projects_data( numProj += 1; let delRows = 0; - // Clean up data *on* a given project. For now, remove all site licenses. + // Clean up data *on* a given project. For now, remove all site licenses, status and last_active. await pool.query( - `UPDATE projects SET site_license = NULL WHERE project_id = $1`, + `UPDATE projects + SET site_license = NULL, status = NULL, last_active = NULL, run_quota = NULL + WHERE project_id = $1`, [project_id], );