mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-11-04 06:24:11 +01:00 
			
		
		
		
	Fix migration issue. (#22867)
See: https://github.com/go-gitea/gitea/pull/22112#issuecomment-1426872992
This commit is contained in:
		
							parent
							
								
									9057a008a1
								
							
						
					
					
						commit
						d4a9b35c4b
					
				@ -10,7 +10,7 @@ import (
 | 
			
		||||
// AddCardTypeToProjectTable: add CardType column, setting existing rows to CardTypeTextOnly
 | 
			
		||||
func AddCardTypeToProjectTable(x *xorm.Engine) error {
 | 
			
		||||
	type Project struct {
 | 
			
		||||
		CardType int `xorm:"NOT NULL"`
 | 
			
		||||
		CardType int `xorm:"NOT NULL DEFAULT 0"`
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return x.Sync(new(Project))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user