File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -354,6 +354,8 @@ var migrations = []Migration{
354354 NewMigration ("No-op (remote version is using AppState now)" , addRemoteVersionTableNoop ),
355355 // v200 -> v201
356356 NewMigration ("Add table app_state" , addTableAppState ),
357+ // v201 -> v202
358+ NewMigration ("Drop table remote_version (if exists)" , dropTableRemoteVersion ),
357359}
358360
359361// GetCurrentDBVersion returns the current db version
Original file line number Diff line number Diff line change 1+ // Copyright 2021 The Gitea Authors. All rights reserved.
2+ // Use of this source code is governed by a MIT-style
3+ // license that can be found in the LICENSE file.
4+
5+ package migrations
6+
7+ import (
8+ "xorm.io/xorm"
9+ )
10+
11+ func dropTableRemoteVersion (x * xorm.Engine ) error {
12+ // drop the orphaned table introduced in `v199`, now the update checker also uses AppState, do not need this table
13+ _ = x .DropTables ("remote_version" )
14+ return nil
15+ }
You can’t perform that action at this time.
0 commit comments