Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Cleanup Commands for Database and Storage Management #196

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

butschster
Copy link
Member

This PR introduces a new console command for cleaning up databases and storage buckets, as well as enhancements to the Makefile for better local development management.

New Console Command:
To facilitate the cleanup of databases and storage, a new command has been added:

php app.php cleanup

Upon successful execution, the following output confirms the cleanup process:

Cleaning database...
- Table events cleaned
- Table http_dump_attachments cleaned
- Table projects cleaned
- Table smtp_attachments cleaned
- Table webhook_deliveries cleaned
- Table webhooks cleaned

Cleaning storage...
- Bucket smtp cleaned
- Bucket http_dumps cleaned

Makefile Improvements:

Improves Makefile:

  • Adds command to recreate local database (Doltdb)
  • Adds commands to cleanup runtime

Several new commands have been added to the Makefile to support various cleanup activities and database management:

Cleanup Attachments Storage:

make cleanup-attachments

Cleanup Runtime Cache:

make cleanup-cache

Cleanup Runtime Snapshots:

make cleanup-snapshots

Comprehensive Cleanup (Snapshots, Cache, Attachments):

make cleanup

Recreate Doltdb:

Warning All stored data will be deleted

make recreate-db

These additions aim to streamline the maintenance and management of local development environments.

Improves Makefile:
- Adds command to recreate local database (Doltdb)
- Adds commands to cleanup runtime
@butschster butschster added enhancement New feature or request usability labels Jun 8, 2024
@butschster butschster added this to the 1.0 milestone Jun 8, 2024
@butschster butschster self-assigned this Jun 8, 2024
@butschster butschster requested a review from roxblnfk June 8, 2024 06:58
@butschster butschster merged commit 35204db into master Jun 9, 2024
6 checks passed
@butschster butschster deleted the feature/cleanup-command branch June 9, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request usability
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant