mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-25 13:55:53 +03:00
[PR #781] [MERGED] feat: add custom SQL cleanup for scheduled maintenance #759
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#759
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/781
Author: @dreamhunter2333
Created: 12/11/2025
Status: ✅ Merged
Merged: 12/11/2025
Merged by: @dreamhunter2333
Base:
main← Head:feature/email📝 Commits (1)
670d09bfeat: add custom SQL cleanup for scheduled maintenance📊 Changes
4 files changed (+277 additions, -92 deletions)
View changed files
📝
frontend/src/views/admin/Maintenance.vue(+169 -91)📝
worker/src/admin_api/cleanup_api.ts(+85 -1)📝
worker/src/models/index.ts(+8 -0)📝
worker/src/scheduled.ts(+15 -0)📄 Description
User description
Summary
Changes
worker/src/models/index.ts: AddCustomSqlCleanuptypeworker/src/admin_api/cleanup_api.ts: AddvalidateCustomSql,executeCustomSqlCleanup,normalizeSqlfunctionsworker/src/scheduled.ts: Integrate custom SQL cleanup executionfrontend/src/views/admin/Maintenance.vue: Add tabs UI for basic/custom SQL cleanupTest plan
🤖 Generated with Claude Code
PR Type
Enhancement, Tests
Description
Introduced custom SQL cleanup functionality for scheduled maintenance.
Added SQL validation and normalization for DELETE statements.
Enhanced admin UI with tabs for basic and custom SQL cleanup.
Integrated custom SQL execution into the scheduled cleanup process.
Changes walkthrough 📝
Maintenance.vue
Add UI for custom SQL cleanup managementfrontend/src/views/admin/Maintenance.vue
entries.
cleanup_api.ts
Add SQL validation and execution logicworker/src/admin_api/cleanup_api.ts
validateCustomSqlfor SQL validation.executeCustomSqlCleanupfor executing custom SQL tasks.index.ts
Define types for custom SQL cleanupworker/src/models/index.ts
CustomSqlCleanuptype for custom SQL tasks.CleanupSettingsto include custom SQL cleanup list.scheduled.ts
Integrate custom SQL cleanup into scheduled tasksworker/src/scheduled.ts
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.