diff options
author | Jonas Franz <info@jonasfranz.software> | 2018-03-31 03:10:44 +0200 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2018-03-31 09:10:44 +0800 |
commit | 3e06490d38ee631029b020ccd408231841e5d1da (patch) | |
tree | 65235171481ac2a9536f5dd7336ae9a870d7c083 /models/migrations/migrations.go | |
parent | d877bf7e15ebd5d9a74e58f3999e3276e76fa15e (diff) | |
download | gitea-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.go | 2 |
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 |