]> source.dussan.org Git - gitea.git/commit
Delete Labels & IssueLabels on Repo Delete too (#15039)
author6543 <6543@obermui.de>
Fri, 19 Mar 2021 19:01:24 +0000 (20:01 +0100)
committerGitHub <noreply@github.com>
Fri, 19 Mar 2021 19:01:24 +0000 (21:01 +0200)
commita3a65137ba89267b5145825b21bb90257ee9f2f0
tree21ee8477706d9f7d7a0f35185e83aa86bfa6d61d
parentdace0ce1b191d060976bac08f181ca768fc027a0
Delete Labels & IssueLabels on Repo Delete too (#15039)

* Doctor: find IssueLabels without existing label

* on Repo Delete: delete labels & issue_labels too

* performance nits

* Add Migration: Delete orphaned IssueLabels

* Migration v174: use Sync2

* USE sess !!!

* better func name

* code format & comment

* RAW SQL

* Update models/migrations/v176.go

* next try?
models/consistency.go
models/issue_label.go
models/migrations/migrations.go
models/migrations/v174.go
models/migrations/v177.go [new file with mode: 0644]
models/repo.go
modules/doctor/dbconsistency.go