mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-03 23:22:39 +02:00
add indices to group_id and group_sort_order column
add migration for repository table
This commit is contained in:
parent
57c38a49fb
commit
bc494f09ba
@ -405,6 +405,7 @@ func prepareMigrationTasks() []*migration {
|
||||
newMigration(328, "Add TokenPermissions column to ActionRunJob", v1_26.AddTokenPermissionsToActionRunJob),
|
||||
newMigration(329, "Add unique constraint for user badge", v1_26.AddUniqueIndexForUserBadge),
|
||||
newMigration(330, "Add name column to webhook", v1_26.AddNameToWebhook),
|
||||
newMigration(331, "Add group_id and group_sort_order columns to repository table", v1_26.AddGroupColumnsToRepositoryTable),
|
||||
}
|
||||
return preparedMigrations
|
||||
}
|
||||
|
||||
@ -220,8 +220,8 @@ type Repository struct {
|
||||
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
|
||||
ArchivedUnix timeutil.TimeStamp `xorm:"DEFAULT 0"`
|
||||
|
||||
GroupID int64 `xorm:"DEFAULT NULL"`
|
||||
GroupSortOrder int
|
||||
GroupID int64 `xorm:"INDEX DEFAULT NULL"`
|
||||
GroupSortOrder int `xorm:"INDEX"`
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user