mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	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?
This commit is contained in:
		
					parent
					
						
							
								dace0ce1b1
							
						
					
				
			
			
				commit
				
					
						a3a65137ba
					
				
			
		
					 7 changed files with 116 additions and 9 deletions
				
			
		|  | @ -295,11 +295,13 @@ var migrations = []Migration{ | |||
| 	// v173 -> v174 | ||||
| 	NewMigration("Add time_id column to Comment", addTimeIDCommentColumn), | ||||
| 	// v174 -> v175 | ||||
| 	NewMigration("create repo transfer table", addRepoTransfer), | ||||
| 	NewMigration("Create repo transfer table", addRepoTransfer), | ||||
| 	// v175 -> v176 | ||||
| 	NewMigration("Fix Postgres ID Sequences broken by recreate-table", fixPostgresIDSequences), | ||||
| 	// v176 -> v177 | ||||
| 	NewMigration("Remove invalid labels from comments", removeInvalidLabels), | ||||
| 	// v177 -> v178 | ||||
| 	NewMigration("Delete orphaned IssueLabels", deleteOrphanedIssueLabels), | ||||
| } | ||||
| 
 | ||||
| // GetCurrentDBVersion returns the current db version | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue