Files
Gitea/modelmigration/v1_12/v124.go
T
2026-08-03 08:13:15 +00:00

26 lines
565 B
Go

// Copyright 2020 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_12
import (
"context"
"gitea.dev/modelmigration/base"
)
func AddUserRepoMissingColumns(_ context.Context, x base.EngineMigration) error {
type VisibleType int
type User struct {
PasswdHashAlgo string `xorm:"NOT NULL DEFAULT 'pbkdf2'"`
Visibility VisibleType `xorm:"NOT NULL DEFAULT 0"`
}
type Repository struct {
IsArchived bool `xorm:"INDEX"`
Topics []string `xorm:"TEXT JSON"`
}
return x.Sync(new(User), new(Repository))
}