diff options
author | Jonas <cez81@users.noreply.github.com> | 2017-04-11 15:30:15 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-04-11 21:30:15 +0800 |
commit | be6edaddcba1e607884539a250bd19debabba751 (patch) | |
tree | 352d09f7eb4643fb36bae9625fbeafd77643689e /models/migrations/migrations.go | |
parent | 54f0293f0ab73f357f545f8e05d16f9b254aba5e (diff) | |
download | gitea-be6edaddcba1e607884539a250bd19debabba751.tar.gz gitea-be6edaddcba1e607884539a250bd19debabba751.zip |
Repo size in admin panel (#1482)
* Implementation of the feature to view repository size in admin panel
* Move GetRepoSize to git module
* Repository.RepoSize -> Repository.Size
* RepoSize -> Size in template
* Redo a few bits and pieces
* Update size when syncing mirror or forking
* Remove GetRepoSize
* Changed fatal errors to error message
* Copy migration code from Gogs
* make fmt
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 fee0fef79c..fb7b66cd00 100644 --- a/models/migrations/migrations.go +++ b/models/migrations/migrations.go @@ -104,6 +104,8 @@ var migrations = []Migration{ NewMigration("generate and migrate repo and wiki Git hooks", generateAndMigrateGitHookChains), // v27 -> v28 NewMigration("change mirror interval from hours to time.Duration", convertIntervalToDuration), + // v28 -> v29 + NewMigration("add field for repo size", addRepoSize), } // Migrate database to current version |