Skip to content

Commit 907000f

Browse files
committed
Fix some bugs
1 parent dd0004e commit 907000f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

models/migrations/migrations.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ func prepareMigrationTasks() []*migration {
373373

374374
// Gitea 1.23.0-rc0 ends at migration ID number 311 (database version 312)
375375
newMigration(312, "Add DeleteBranchAfterMerge to AutoMerge", v1_24.AddDeleteBranchAfterMergeForAutoMerge),
376-
// Gitea 1.23.0-rc0 ends at migration ID number 311 (database version 312)
377376
newMigration(313, "Move PinOrder from issue table to a new table issue_pin", v1_24.MovePinOrderToTableIssuePin),
378377
}
379378
return preparedMigrations

models/migrations/v1_24/v313.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 The Gitea Authors. All rights reserved.
1+
// Copyright 2025 The Gitea Authors. All rights reserved.
22
// SPDX-License-Identifier: MIT
33

44
package v1_24 //nolint

services/repository/delete.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ func DeleteRepositoryDirectly(ctx context.Context, doer *user_model.User, repoID
158158
&actions_model.ActionSchedule{RepoID: repoID},
159159
&actions_model.ActionArtifact{RepoID: repoID},
160160
&actions_model.ActionRunnerToken{RepoID: repoID},
161+
&issues_model.IssuePin{RepoID: repoID},
161162
); err != nil {
162163
return fmt.Errorf("deleteBeans: %w", err)
163164
}

0 commit comments

Comments
 (0)