summaryrefslogtreecommitdiffstats
path: root/models/forgejo_migrations/v1_22/v11.go
blob: c6939935657deee7cf7554f8718c0ce62e2fa4b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2024 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_22 //nolint

import (
	"code.gitea.io/gitea/modules/timeutil"

	"xorm.io/xorm"
)

func AddCreatedToIssue(x *xorm.Engine) error {
	type Issue struct {
		ID      int64 `xorm:"pk autoincr"`
		Created timeutil.TimeStampNano
	}

	return x.Sync(&Issue{})
}