Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

123456789101112131415161718192021
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package v1_15 //nolint
  4. import (
  5. "xorm.io/xorm"
  6. )
  7. func AddRepoArchiver(x *xorm.Engine) error {
  8. // RepoArchiver represents all archivers
  9. type RepoArchiver struct {
  10. ID int64 `xorm:"pk autoincr"`
  11. RepoID int64 `xorm:"index unique(s)"`
  12. Type int `xorm:"unique(s)"`
  13. Status int
  14. CommitID string `xorm:"VARCHAR(40) unique(s)"`
  15. CreatedUnix int64 `xorm:"INDEX NOT NULL created"`
  16. }
  17. return x.Sync(new(RepoArchiver))
  18. }