code.gitea.io/gitea@v1.22.3/models/migrations/v1_22/v296.go (about) 1 // Copyright 2024 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package v1_22 //nolint 5 6 import "xorm.io/xorm" 7 8 func AddCommitStatusSummary2(x *xorm.Engine) error { 9 type CommitStatusSummary struct { 10 ID int64 `xorm:"pk autoincr"` 11 TargetURL string `xorm:"TEXT"` 12 } 13 // there is no migrations because if there is no data on this table, it will fall back to get data 14 // from commit status 15 return x.Sync(new(CommitStatusSummary)) 16 }