summaryrefslogtreecommitdiffstats
path: root/models/migrations/migrations.go
diff options
context:
space:
mode:
authorJonas Franz <info@jonasfranz.software>2018-03-31 03:10:44 +0200
committerBo-Yi Wu <appleboy.tw@gmail.com>2018-03-31 09:10:44 +0800
commit3e06490d38ee631029b020ccd408231841e5d1da (patch)
tree65235171481ac2a9536f5dd7336ae9a870d7c083 /models/migrations/migrations.go
parentd877bf7e15ebd5d9a74e58f3999e3276e76fa15e (diff)
downloadgitea-3e06490d38ee631029b020ccd408231841e5d1da.tar.gz
gitea-3e06490d38ee631029b020ccd408231841e5d1da.zip
Add Size column to attachment (#3734)
* Add size column to attachment Migrate attachments by calculating file sizes Signed-off-by: Jonas Franz <info@jonasfranz.software> * Calculate attachment size on creation Signed-off-by: Jonas Franz <info@jonasfranz.software> * Log error instead of returning error Signed-off-by: Jonas Franz <info@jonasfranz.software>
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r--models/migrations/migrations.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index 36c84a61aa..16037e1472 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -174,6 +174,8 @@ var migrations = []Migration{
NewMigration("add merge whitelist for protected branches", addProtectedBranchMergeWhitelist),
// v60 -> v61
NewMigration("add is_fsck_enabled column for repos", addFsckEnabledToRepo),
+ // v61 -> v62
+ NewMigration("add size column for attachments", addSizeToAttachment),
}
// Migrate database to current version