mirror of
https://github.com/go-gitea/gitea
synced 2024-06-01 19:06:52 +02:00
corrected migration
This commit is contained in:
parent
618000a673
commit
5507c07e91
|
@ -17,12 +17,9 @@ import (
|
|||
func AddActionsVisibility(x *xorm.Engine) error {
|
||||
// This migration maybe rerun so that we should check if it has been run
|
||||
keepActivityPrivateExits, err := x.Dialect().IsColumnExist(x.DB(), context.Background(), "user", "keep_activity_private")
|
||||
if err != nil {
|
||||
if err != nil || !keepActivityPrivateExits {
|
||||
return err
|
||||
}
|
||||
if keepActivityPrivateExits {
|
||||
return nil
|
||||
}
|
||||
|
||||
sess := x.NewSession()
|
||||
defer sess.Close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user