Files
2026-08-03 08:13:15 +00:00

24 lines
592 B
Go

// Copyright 2021 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package v1_15
import (
"context"
"gitea.dev/modelmigration/base"
)
func AddRepoArchiver(_ context.Context, x base.EngineMigration) error {
// RepoArchiver represents all archivers
type RepoArchiver struct {
ID int64 `xorm:"pk autoincr"`
RepoID int64 `xorm:"index unique(s)"`
Type int `xorm:"unique(s)"`
Status int
CommitID string `xorm:"VARCHAR(40) unique(s)"`
CreatedUnix int64 `xorm:"INDEX NOT NULL created"`
}
return x.Sync(new(RepoArchiver))
}