mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-26 08:58:24 +00:00 
			
		
		
		
	Co-authored-by: @awkwardbunny This PR adds a Debian package registry. You can follow [this tutorial](https://www.baeldung.com/linux/create-debian-package) to build a *.deb package for testing. Source packages are not supported at the moment and I did not find documentation of the architecture "all" and how these packages should be treated.  Part of #20751. Revised copy of #22854. --------- Co-authored-by: Brian Hong <brian@hongs.me> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Giteabot <teabot@gitea.io>
		
			
				
	
	
		
			24 lines
		
	
	
		
			687 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			687 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2023 The Gitea Authors. All rights reserved.
 | |
| // SPDX-License-Identifier: MIT
 | |
| 
 | |
| package v1_20 //nolint
 | |
| 
 | |
| import (
 | |
| 	"xorm.io/xorm"
 | |
| )
 | |
| 
 | |
| func AddIsInternalColumnToPackage(x *xorm.Engine) error {
 | |
| 	type Package struct {
 | |
| 		ID               int64  `xorm:"pk autoincr"`
 | |
| 		OwnerID          int64  `xorm:"UNIQUE(s) INDEX NOT NULL"`
 | |
| 		RepoID           int64  `xorm:"INDEX"`
 | |
| 		Type             string `xorm:"UNIQUE(s) INDEX NOT NULL"`
 | |
| 		Name             string `xorm:"NOT NULL"`
 | |
| 		LowerName        string `xorm:"UNIQUE(s) INDEX NOT NULL"`
 | |
| 		SemverCompatible bool   `xorm:"NOT NULL DEFAULT false"`
 | |
| 		IsInternal       bool   `xorm:"NOT NULL DEFAULT false"`
 | |
| 	}
 | |
| 
 | |
| 	return x.Sync(new(Package))
 | |
| }
 |