diff options
author | Jason Song <i@wolfogre.com> | 2024-08-02 08:42:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 00:42:08 +0000 |
commit | 687c1182482ad9443a5911c068b317a91c91d586 (patch) | |
tree | cd47e85e58f7cd985aa1fe3ca0d64cd8b22724e2 /models/migrations/migrations.go | |
parent | e3678356e1c0e50de96a3a142d703c8797c1476f (diff) | |
download | gitea-687c1182482ad9443a5911c068b317a91c91d586.tar.gz gitea-687c1182482ad9443a5911c068b317a91c91d586.zip |
Clear up old Actions logs (#31735)
Part of #24256.
Clear up old action logs to free up storage space.
Users will see a message indicating that the log has been cleared if
they view old tasks.
<img width="1361" alt="image"
src="https://github.com/user-attachments/assets/9f0f3a3a-bc5a-402f-90ca-49282d196c22">
Docs: https://gitea.com/gitea/docs/pulls/40
---------
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r-- | models/migrations/migrations.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go index 0e13e89f00..a57b4da031 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -595,6 +595,8 @@ var migrations = []Migration{ NewMigration("Add force-push branch protection support", v1_23.AddForcePushBranchProtection), // v301 -> v302 NewMigration("Add skip_secondary_authorization option to oauth2 application table", v1_23.AddSkipSecondaryAuthColumnToOAuth2ApplicationTable), + // v302 -> v303 + NewMigration("Add index to action_task stopped log_expired", v1_23.AddIndexToActionTaskStoppedLogExpired), } // GetCurrentDBVersion returns the current db version |