Skip to content

Commit

Permalink
hub/delete-projects: reset more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldschilly committed Oct 15, 2024
1 parent d1989d8 commit b770b46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/packages/database/postgres/delete-projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);

Expand Down

0 comments on commit b770b46

Please sign in to comment.