File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 11-
22 id : 1
33 title : First project
4+ owner_id : 0
45 repo_id : 1
56 is_closed : false
67 creator_id : 2
1011-
1112 id : 2
1213 title : second project
14+ owner_id : 0
1315 repo_id : 3
1416 is_closed : false
1517 creator_id : 3
1921-
2022 id : 3
2123 title : project on repo with disabled project
24+ owner_id : 0
2225 repo_id : 4
2326 is_closed : true
2427 creator_id : 5
2932 id : 4
3033 title : project on user2
3134 owner_id : 2
35+ repo_id : 0
3236 is_closed : false
3337 creator_id : 2
3438 board_type : 1
Original file line number Diff line number Diff line change @@ -469,6 +469,8 @@ var migrations = []Migration{
469469 NewMigration ("Add NeedApproval to actions tables" , v1_20 .AddNeedApprovalToActionRun ),
470470 // v245 -> v246
471471 NewMigration ("Rename Webhook org_id to owner_id" , v1_20 .RenameWebhookOrgToOwner ),
472+ // v246 -> v247
473+ NewMigration ("Add missed column owner_id for project table" , v1_20 .AddNewColumnForProject ),
472474}
473475
474476// GetCurrentDBVersion returns the current db version
Original file line number Diff line number Diff line change 1+ // Copyright 2023 The Gitea Authors. All rights reserved.
2+ // SPDX-License-Identifier: MIT
3+
4+ package v1_20 //nolint
5+
6+ import (
7+ "xorm.io/xorm"
8+ )
9+
10+ func AddNewColumnForProject (x * xorm.Engine ) error {
11+ type Project struct {
12+ OwnerID int64 `xorm:"INDEX"`
13+ }
14+
15+ return x .Sync (new (Project ))
16+ }
You can’t perform that action at this time.
0 commit comments