mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-21 01:19:25 +02:00
moved AddSizeLimitOnRepo migration to v1_19 package
This commit is contained in:
@@ -443,7 +443,7 @@ var migrations = []Migration{
|
||||
// v235 -> v236
|
||||
NewMigration("Add index for access_token", v1_19.AddIndexForAccessToken),
|
||||
// to modify later
|
||||
NewMigration("add size limit on repository", addSizeLimitOnRepo),
|
||||
NewMigration("add size limit on repository", v1_19.AddSizeLimitOnRepo),
|
||||
}
|
||||
|
||||
// GetCurrentDBVersion returns the current db version
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
// Copyright 2022 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package migrations
|
||||
package v1_19 // nolint
|
||||
|
||||
import "xorm.io/xorm"
|
||||
import (
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
||||
func addSizeLimitOnRepo(x *xorm.Engine) error {
|
||||
func AddSizeLimitOnRepo(x *xorm.Engine) error {
|
||||
type Repository struct {
|
||||
ID int64 `xorm:"pk autoincr"`
|
||||
SizeLimit int64 `xorm:"NOT NULL DEFAULT 0"`
|
||||
Reference in New Issue
Block a user