From 44114b38e601c8bf44f575daef1d0e0597f37d1d Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Mon, 18 Feb 2019 21:55:04 +0100 Subject: Implement "conversation lock" for issue comments (#5073) --- models/migrations/v80.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 models/migrations/v80.go (limited to 'models/migrations/v80.go') diff --git a/models/migrations/v80.go b/models/migrations/v80.go new file mode 100644 index 0000000000..8cd2ac80a8 --- /dev/null +++ b/models/migrations/v80.go @@ -0,0 +1,18 @@ +// Copyright 2019 The Gitea Authors. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file. + +package migrations + +import "github.com/go-xorm/xorm" + +func addIsLockedToIssues(x *xorm.Engine) error { + // Issue see models/issue.go + type Issue struct { + ID int64 `xorm:"pk autoincr"` + IsLocked bool `xorm:"NOT NULL DEFAULT false"` + } + + return x.Sync2(new(Issue)) + +} -- cgit v1.2.3