mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	* Fix mig 141 * temporary fix dump
This commit is contained in:
		| @@ -15,12 +15,14 @@ import ( | ||||
|  | ||||
| 	"code.gitea.io/gitea/modules/setting" | ||||
|  | ||||
| 	// Needed for the MySQL driver | ||||
| 	_ "github.com/go-sql-driver/mysql" | ||||
| 	"xorm.io/builder" | ||||
| 	"xorm.io/xorm" | ||||
| 	"xorm.io/xorm/names" | ||||
| 	"xorm.io/xorm/schemas" | ||||
|  | ||||
| 	// Needed for the MySQL driver | ||||
| 	_ "github.com/go-sql-driver/mysql" | ||||
|  | ||||
| 	// Needed for the Postgresql driver | ||||
| 	_ "github.com/lib/pq" | ||||
|  | ||||
| @@ -312,6 +314,13 @@ func DumpDatabase(filePath string, dbType string) error { | ||||
| 		tbs = append(tbs, t) | ||||
| 	} | ||||
|  | ||||
| 	// temporary fix for v1.13.x (https://github.com/go-gitea/gitea/issues/14069) | ||||
| 	if _, err := x.Where(builder.IsNull{"keep_activity_private"}). | ||||
| 		Cols("keep_activity_private"). | ||||
| 		Update(User{KeepActivityPrivate: false}); err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	type Version struct { | ||||
| 		ID      int64 `xorm:"pk autoincr"` | ||||
| 		Version int64 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user