mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 22:41:03 +00:00 
			
		
		
		
	Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8422 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			508 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			508 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2023 The Forgejo Authors. All rights reserved.
 | |
| // SPDX-License-Identifier: MIT
 | |
| 
 | |
| package forgejo_v1_20
 | |
| 
 | |
| import (
 | |
| 	"forgejo.org/modules/timeutil"
 | |
| 
 | |
| 	"xorm.io/xorm"
 | |
| )
 | |
| 
 | |
| func AddForgejoBlockedUser(x *xorm.Engine) error {
 | |
| 	type ForgejoBlockedUser struct {
 | |
| 		ID          int64              `xorm:"pk autoincr"`
 | |
| 		BlockID     int64              `xorm:"index"`
 | |
| 		UserID      int64              `xorm:"index"`
 | |
| 		CreatedUnix timeutil.TimeStamp `xorm:"created"`
 | |
| 	}
 | |
| 
 | |
| 	return x.Sync(new(ForgejoBlockedUser))
 | |
| }
 |