Skip to content

Commit b770b46

Browse files
committed
hub/delete-projects: reset more fields
1 parent d1989d8 commit b770b46

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

+4-2
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,11 @@ export async function cleanup_old_projects_data(
181181
numProj += 1;
182182
let delRows = 0;
183183

184-
// Clean up data *on* a given project. For now, remove all site licenses.
184+
// Clean up data *on* a given project. For now, remove all site licenses, status and last_active.
185185
await pool.query(
186-
`UPDATE projects SET site_license = NULL WHERE project_id = $1`,
186+
`UPDATE projects
187+
SET site_license = NULL, status = NULL, last_active = NULL, run_quota = NULL
188+
WHERE project_id = $1`,
187189
[project_id],
188190
);
189191

0 commit comments

Comments
 (0)